0
点赞
收藏
分享

微信扫一扫

1093 - You can't specify target table 'table' for update in FROM clause

浮游图灵 2022-10-25 阅读 127
编程语言


1093 - You can

大致意思 是 不能先将select出表中的某些值,再update这个表(在同一语句中)

 

可以引入一个临时表进行操作

delete from push_plans WHERE id in 
(
select id from
(
select id from push_plans WHERE area_id = 0

) as t
)

举报

相关推荐

0 条评论