Oracle 查询复合主键重复值

select col_a, col_b, count(1)
from tab_name
group by col_a, col_b
having count(1) > 1

你可能感兴趣的:(oracle)