如何查询oracle数据库表中的重复记录

如题所述

用group by ... having...



比如查询,a,b,c,d四列组合是否有重复的


select a,b,c,d,count(*)
from tablename
group by a,b,c,d
having count(*) > 1
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答
大家正在搜