标签:ids spider min rom ide delete not HERE code
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)
标签:ids spider min rom ide delete not HERE code
原文地址:https://www.cnblogs.com/xiujin/p/11515744.html