mysql连接分组数据(group_concat)

field('id,group_concat(data,":") as data')


selectuserid, group_concat(orderid,',') from order group by userid

 

 

  

  

posted @ 2018-09-19 11:30  终究是乌云遮了天  阅读(650)  评论(0编辑  收藏  举报