select substring_index(substring_index(profile,",",-2),",",1) as age, count(device_id) as number from user_submit group by age; //首先,它使用substring_index函数从profile字段中提取倒数第二个逗号之前的部分作为年龄。然后,它计算每个年龄的设备数量。最后,它按年龄分组并返回每个年龄的设备数量。