刪除重複數據:
delete from [tbl_name] where rowid not in(select max(rowid) from [tbl_name] group by id)web
delete from table1 a where rowid !=(select max(rowid)
from table1 b where a.name1=b.name1 and a.name2=b.name2......)spa
查找重複記錄:orm
select q1.* from qq q1, qq q2 where q1.[id] <> q2.[id] and q1.[qq] == q2.[qq]it