group_concat MYSQL new line

后端 未结 4 1568
逝去的感伤
逝去的感伤 2020-12-06 10:00
group_concat(A,\' \',B,\' \',C) as Name,

then using this php for displaying

         


        
4条回答
  •  半阙折子戏
    2020-12-06 10:36

    I don't understand what do you mean by line break between X and Y, but if you need the values to be comma separated you can add any separator to the Group_Concat like that:

    group_concat(Name SEPARATOR ' ') as Name
    

    and here is some other separators you can use.

提交回复
热议问题