需求是在一个 sql 查询中有 group by,查询后的结果,要对某个字段 拼接展示,可以用使用函数: group_concat(distinct id) ids 转载于:https://www.cnblogs.com/mojiruo/p/11126497.html