看看 GROUP_CONCAT the documentation 更多细节。
GROUP_CONCAT
它看起来像:
SELECT GROUP_CONCAT(hobbies SEPARATOR ', ') FROM peoples_hobbies WHERE person_id = 5 GROUP BY 'all';