select substring(profile,12,2) age,count(*) from user_submit group by age /方法二: select substring_index(t1,',',-1) age,count() from ( select substring_index(profile,',',3) t1 from user_submit) new group by age*/