#搭配like的方法 SELECT CASE WHEN profile like '%,male' THEN 'male' WHEN profile like '%,female' THEN 'female' ELSE 'other' END AS gender, COUNT(*) AS number FROM user_submit GROUP BY gender # 搭配正则化 # SELECT # CASE WHEN profile REGEXP ',[^,]*,male$' THEN 'male' # WHEN ...