Fight With Me!!!

导航

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

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; 已经测试,尽请使用

posted on 2016-06-11 09:58  nickTimer  阅读(172)  评论(0编辑  收藏  举报