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
相关文章
相关标签/搜索