GROUP_CONCAT comma separator - MySQL

前端 未结 3 891
一整个雨季
一整个雨季 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:25

    Or, if you are doing a split - join:

    GROUP_CONCAT(split(thing, " "), '----') AS thing_name,
    

    You may want to inclue WITHIN RECORD, like this:

    GROUP_CONCAT(split(thing, " "), '----') WITHIN RECORD AS thing_name,
    

    from BigQuery API page

提交回复
热议问题