oracle 查询表中重复数据

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

猜你喜欢

转载自www.cnblogs.com/pxkuan/p/9986976.html