📜  多行到 1 个字符串 mysql 代码示例

📅  最后修改于: 2022-03-11 15:05:11.979000             🧑  作者: Mango

代码示例1
SELECT person_id,
   GROUP_CONCAT(hobbies SEPARATOR ', ')
FROM peoples_hobbies
GROUP BY person_id;