将查询结果用指定分隔符连接起来返回
select group_concat( id separator ',') from table;
将结果集中所有列的id字段使用 ,号连接起来。
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3