select substring_index(substring_index(profile,',',3),',',-1) as age, count(device_id) as number from user_submit group by age 问题分解:限定条件:无;每个年龄:按年龄分组group by age,但是没有age字段,需要从profile字段截取,按字符,分割后取出即可。可使用substring_index函数可以按特定字符串截取源字符串。substring_index(FIELD, sep, n)可以将字段FIELD按照sep分隔:(1).当n大于0...