mysql刪除重複數據

也許你在百度中找到一條sql,欣喜若狂:  (腳本之家,目前爲止依然是錯誤的例子)mysql delete FROM `ex` WHERE phone in (SELECT c.phone FROM `ex` as c GROUP BY c.phone sql HAVING COUNT( * ) >1) and id not in (select max(b.id) from `ex` as b
相關文章
相關標籤/搜索