分享至
朋友圈
微信
qq空间
qq
微博
复制
简单的一条语句:delete from 表名 where (id) in ( select id from 表名 group by id having count(id) > 1) and rowid not in (select min(rowid) from 表名 group by id having count(*) > 1);