復制代碼 代碼如下:
select a,b,c,count(*) from (select c.a,c.b,c.c from test c) having count(*) >= 2 group by a,b,c
或者
復制代碼 代碼如下:
select zdbh,tdzl,zdmj,count(*) from ecaadmin.zdsx group by zdbh,tdzl,zdmj having count(*) >= 2
您可能感興趣的文章:- 用SQL語句查詢數(shù)據(jù)庫中某一字段下相同值的記錄方法