select substring_index(substring_index(profile,',',-2),',',1) as age, count(*) as number from user_submit group by age; 题解 : substring_index(substring_index(profile,',',-2),',',1) as age,先里面运行括号的 , profile字段里从右向左第二个 ' , ' 号 之后的.