group_concat()
select group_concat(id) from xxxx
--------------------------------------------
id1,id2.....