将查询结果用指定分隔符连接起来返回

select group_concat( id separator ',') from table;

将结果集中所有列的id字段使用 ,号连接起来。

相关文章: