复制代码 代码如下:
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
原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/233749.html