查询分类并统计

搜索班级并统计SQL:

select count(*) as num,ban from table group by `ban`

原文地址:https://www.cnblogs.com/tinyphp/p/2799205.html