Oracle查询表中字段里数据是否有重复的方法
程序员文章站
2022-05-02 23:38:59
1、查找单个字段
select 字段名,count(*) from table group by 字段名 having count(*) > 1
2、查找组合字段:
select te...
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
下一篇: Linux tar 命令用法