mysql (2) -group_concat函数

group_concat(): 合并字段 

例:table1

id name
1 jack
2 jim
3 jason
4 tom

  

sql>select group_concat(id) from table1

    结果:1,2,3,4

原文地址:https://www.cnblogs.com/futao123/p/5979824.html