零度
天行健,君子以自强不息;地势坤,君子以厚德载物。

delete from 表名 where 重复字段 in (select 重复字段 from 表名 group by 重复字段 having count(重复字段) > 1)
and rowid not in (select min(rowid) from
表名 group by 重复字段 having count(重复字段)>1)

 

注解:“重复字段”为同一个字段。

posted on 2016-04-19 17:17  青青之兰  阅读(6674)  评论(0编辑  收藏  举报