首页 > 其他 > 详细

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

时间:2018-04-25 17:45:24      阅读:179      评论:0      收藏:0      [点我收藏+]
update t_mail_marketing set `STATUS` = 1 where ID in (

select b.PARENT_ID from (SELECT DISTINCT a.PARENT_ID from t_mail_marketing a where a.`STATUS`=1 and a.PARENT_ID IS NOT NULL and a.PARENT_ID>0)b

)

  

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

原文:https://www.cnblogs.com/wanhua-wu/p/8946127.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!