首页 > 其他 > 详细

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

时间:2016-06-11 10:23:00      阅读:138      评论:0      收藏:0      [点我收藏+]

mysql中不能这么用。 (等待mysql升级吧)错误提示就是说,不能先select出同一表中的某些值,再update这个表(在同一语句中) 替 换方 案: create table tmp as select min(id) as col1 from blur_article group by title;delete from blur_article where id not in (select col1 from tmp); drop table tmp; 已经测试,尽请使用

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

原文:http://www.cnblogs.com/toSeeMyDream/p/5574767.html

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