mysql删除某个字段重复的数据

作个笔记web DELETE FROM tablename where id not in (select id from (select min(id) as id from tablename group by key) as b ) ; 其中key是重复的字段sql
相关文章
相关标签/搜索