题解 | #截取出年龄#
截取出年龄
http://www.nowcoder.com/practice/b8d8a87fe1fc415c96f355dc62bdd12f
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*/