I m 试图将所有重复标题删除的纸浆厂必须删除与这些条件相重复之处:
- must delete only duplicates with same object_id
- must keep only the newest record (biggest topic_id) (topic_id is the unique id for every topic AI)
到目前为止,我已经这样做(用选择......测试)。
SELECT topic_id,object_id,title,url,date
FROM topics GROUP BY title
HAVING ( COUNT(title) > 1)
ORDER BY topic_id DESC
But doesn t meet the conditions.
I m using mysql.