查询table表查询每一个班级中年龄大于20,性别为男的人数
select COUNT(*)as '大于20岁人数',classid from Table1 where sex='男' group by classid,age having age>20 select COUNT
select COUNT(*)as '大于20岁人数',classid from Table1 where sex='男' group by classid,age having age>20 select COUNT