mysql 删除重复数据,需要给子查询的表,起一个别名

mysql 删除重复数据,需要给子查询的表,起一个别名

delete from think_cmport_jpg_copy where id not in (SELECT a FROM (select MAX(id) as a from `think_cmport_jpg_copy` group by `value`) b);

posted @ 2016-08-05 16:08  dcj890828  阅读(340)  评论(0编辑  收藏  举报