select case SUBSTRING_INDEX (profile, ',', -1) when 'female' then 'female' else 'male' end as gender, count(*) as `number` from user_submit group by gender 在MySQL中,SUBSTRING() 和 SUBSTRING_INDEX() 是两个用于处理字符串的函数,它们允许你从字符串中提取子字符串。下面是对这两个函数以及相关的 SUBSTR() 函数的详...