oracle 查询重复纪录

DELETE FROM xx where aa in(select aa from xx group by aa having count(aa) >1) and rowid in (select min(rowid) from xx group by user_guid having count(aa )>1);
select aa from xx group by user_guid having count(aa) >1;

原文地址:https://www.cnblogs.com/kakaisgood/p/7976949.html