select substring_index (substring_index (profile, ',', -2), ',', 1) as age, count(device_id) as number from user_submit group by substring_index (substring_index (profile, ',', -2), ',', 1) substring_index (字段名,‘切割符号’,位置数)当位置数为负数时,表示从字段尾部开始向前