mysql 将查询出来的某一字段组合成字符串

select GROUP_CONCAT(id) as ids from yii_role_menu where roleId=1;

原文地址:https://www.cnblogs.com/grimm/p/5435811.html