I want to convert selected values into a comma separated string in MySQL. My initial code is as follows:
SELECT id FROM table_level where parent_id=4;
Just so for people doing it in SQL server: use STRING_AGG to get similar results.
STRING_AGG