group by 和count的组合使用

班级求男生和女生的数量

select sex,count(*) from students group by sex

posted @ 2012-04-23 14:37  刘振明  阅读(321)  评论(0编辑  收藏  举报