Possible Duplicate:
MySQL Results as comma separated list
Combine Multiple child rows into one row MYSQL
SQL query to pivot a column using CASE WHEN
I want to make a query like this:
SELECT `name` AS `data` FROM `test_table` WHERE `level` = 1 ORDER BY `id`;
But I want it to answer me in only one line with a ',
' ! Like this:
data = a,b,
Without using PHP, is it possible using only MySQL? How? Thank you.