用group by

如有个student表里有性别sex来统计

select sex,count(*) from student group by sex;

posted on 2016-04-22 11:37  chimmu  阅读(698)  评论(0)    收藏  举报