Oracle 查询重复数据方法

查询某个字段存在重复数据的方法:

select * from tablename where id in (
select id from tablename 
group by id 
having count(id) > 1
)

其中id为要查询的重复字段名!

原文地址:https://www.cnblogs.com/adair/p/9758770.html