原数据: 查询: SELECT test,GROUP_CONCAT(id) AS myScore FROM test1 GROUP BY test; 转载于:https://www.cnblogs.com/liyunchuan/p/11511076.html