日期:2014-05-16  浏览次数:20332 次

删除数据库重复数据

delete from tableName where rowname in (select rowname from tableName group by rowname having count(rowname) > 1) and rowid not in (select min(rowid) from tableName group by rowname having count(rowname)>1);