DELETE FROM spider_927
WHERE 1=1
AND title
in (SELECT * FROM ( (SELECT title
titles
FROM spider_927 GROUP BY title HAVING COUNT(title
)>1) ) a)
AND id not in (SELECT * FROM ( (SELECT MIN(id) ids FROM spider_927 GROUP BY title HAVING COUNT(title
)>1) ) b)
原文地址:https://www.cnblogs.com/xiujin/p/11515744.html
时间: 2024-11-11 09:47:32