当前位置: 移动技术网 > IT编程>数据库>Oracle > Oracle查询表中字段里数据是否有重复的方法

Oracle查询表中字段里数据是否有重复的方法

2018年09月30日  | 移动技术网IT编程  | 我要评论

1、查找单个字段

select 字段名,count(*) from table group by 字段名 having count(*) > 1

2、查找组合字段:

select test_name1,test_name2,count(*) from table group by test_name1,test_name2 having count(*) > 1

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网