mysql根据某一个字段查询数量大于1的数据

分组条件:org_code

select count(1) from qyt_company_info t GROUP BY t.org_code HAVING count(1)>1;

猜你喜欢

转载自www.cnblogs.com/chuhongyun/p/11429029.html