SQL語句查詢數據庫中反復記載的個數。本站提示廣大學習愛好者:(SQL語句查詢數據庫中反復記載的個數)文章只能為提供參考,不一定能成為您想要的結果。以下是SQL語句查詢數據庫中反復記載的個數正文
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