转自:https://blog.51cto.com/seetobest/1397471

 

group_contact 要连接的字段,把查询的字段连接起来

 

原数据:

wKioL1NP2zaytnv6AACXXwCf-1I568.jpg

 

select sex,group_contact(name) from employee group by sex;

 

wKioL1NP24HSMIHPAABe7ptwT0w199.jpg

select group_contact(name) from employee;

wKiom1NP3Cny69H_AACYR4ugBqc856.jpg

posted on 2020-09-21 14:07  Sharpest  阅读(1755)  评论(0编辑  收藏  举报