groupconcat是把一组数据,按照一定顺序,用符号连接,组合成一个数据格式:group_concat( distinct user_idorder by user_idseparator ‘‘)最后记得group by 字段默认分隔符为’,’ eg: select qq, group_concat(game separator '_') as game from table1group by qq;