mysql 删除相同的字段内容

DELETE FROM new_collects
WHERE id IN
(SELECT id FROM (SELECT id FROM new_collects GROUP BY content HAVING count(*) > 1)e);

posted @ 2018-11-16 09:52  isafer_wilson  阅读(160)  评论(0编辑  收藏  举报