destoon根据标题删除重复数据

因为采集数据比较庞大,难免出现重复数据,所以写了一个根据标题进行删除重复数据的mysql命令,需要的朋友可以使用。

1
2
3
4
DELETE from destoon_article_36 where
`title` in (
    SELECT * from (SELECT `title` FROM destoon_article_36 GROUP BY `title`  HAVING COUNT(1) >1) tmp2
)

  这样就执行删除了。记得使用前数据先备份!!!!

 演示地址:https://www.clw9335.com/gl/index-htm-page-2.html

posted @ 2023-10-02 11:01  麒麟速排  阅读(12)  评论(0编辑  收藏  举报