I have a query where I am using GROUP_CONCAT and a custom separator as my results may contain commas: \'----\'
GROUP_CONCAT
This all works well, however it is still
Query to achieve your requirment
SELECT id,GROUP_CONCAT(text SEPARATOR ' ') AS text FROM table_name group by id;