思考步骤: 1.从profile中拆除性别字段; 2.根据性别组合求计数。 考点:字符串截取substring_index substring_index(str,delim,count) str:要处理的字符串 delim:分隔符 count:计数 本题我们只需要选择性别故 substring_index(profile,",",-1) 答案 select SUBSTRING_INDEX(profile,',',-1) as gender, count(*) FROM user_submit GROUP BY gender