orcal按照多个字段去重
select * from test where rowid in(
select max(rowid) from test group by name
) 这样可以查bai出不重du复的数据集
如果是zhi要删dao除重复数zhuan据只留一条的话:shu
delete from test where name in(
select name from test group by name having count(*)>1
)
and rowid not in ( select max(rowid) from test group by name having count(*)>1 )