强大的数据库有个自带函数wm_concat() 

wm_concat()这个函数放的是需要汇总的列

 

select wm_concat(name) name  from tablename