因为采集数据比较庞大,难免出现重复数据,所以写了一个根据标题进行删除重复数据的mysql命令,需要的朋友可以使用。
DELETE from destoon_article_36 where `title` in ( SELECT * from (SELECT `title` FROM destoon_article_36 GROUP BY `title` HAVING COUNT(1) >1) tmp2 )
这样就执行删除了。记得使用前数据先备份!!!!
演示地址:http://www.nongpin88.com/sitemap/html/
标签:destoon,删除,title,重复,标题,数据,SELECT From: https://www.cnblogs.com/68xi/p/17700981.html