mysql greater than the number of queries based on one data field 1

Grouping condition: org_code

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

Guess you like

Origin www.cnblogs.com/chuhongyun/p/11429029.html