1.分组 # 典型分组 SELECT class_name, COUNT(*) FROM student GROUP BY class_name; # 按处理后的字段分组1 SELECT IF(class_name LIKE '尖子%','尖子班','普通班'), COUNT(*) FROM student GROUP BY IF(class_name LIKE '尖子%','尖子班','普通班'); # 按处理后的字段分组2 SELECT DATE_FORMAT(birth_date,'%Y-%m'), COUNT(*) FROM student GROUP BY DAT...