GROUP_CONCAT comma separator - MySQL

前端 未结 3 882
一整个雨季
一整个雨季 2020-12-02 06:12

I have a query where I am using GROUP_CONCAT and a custom separator as my results may contain commas: \'----\'

This all works well, however it is still

3条回答
  •  [愿得一人]
    2020-12-02 06:41

    Query to achieve your requirment

    SELECT id,GROUP_CONCAT(text SEPARATOR ' ') AS text FROM table_name group by id;
    

提交回复
热议问题