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

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

 

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

delete from push_plans WHERE id in 
(
     select id from 
     (
         select id from push_plans WHERE  area_id = 0
         
     ) as t

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-24
  • 2021-05-20
  • 2022-01-12
  • 2021-09-12
  • 2022-12-23
猜你喜欢
  • 2021-06-20
  • 2022-01-08
  • 2022-01-19
  • 2022-12-23
  • 2022-12-23
  • 2021-12-30
  • 2021-08-23
相关资源
相似解决方案