首页 > 技术文章 > mysql 行转列
blog-ice 2018-06-27 10:50 原文
将多行转换成一行
select group_concat(id, ':', name) from user
结果:
id:name,id:name,id:name.....