用rowid这个字段去重,因为在一张表中,这个字段是绝不会重复的
去重前表如下
通过这条语句删除重复记录
delete from table where rowid not in (select max(rowid) from table group by c1,c2,c3);
去重后
用rowid这个字段去重,因为在一张表中,这个字段是绝不会重复的
去重前表如下
通过这条语句删除重复记录
delete from table where rowid not in (select max(rowid) from table group by c1,c2,c3);
去重后