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

删除重复的记录
delete from ucs_projectno_pms    
where uniqueid in (select uniqueid from ucs_projectno_pms group by uniqueid   having count(uniqueid) > 1)   
and rowid not in (select min(rowid) from ucs_projectno_pms group by uniqueid having count(uniqueid )>1)