Oracle 查询重复数据方法

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

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

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

 

posted on 2018-10-09 10:13  James赵  阅读(2840)  评论(0编辑  收藏  举报