wmsys.wm_concat
将表中数据 如 ID USERNAME TYPE
1 刘 下
1 刘 来
2 龙 啊
2 龙 是
2 龙 的
select id,USERNAME, wmsys.wm_concat(type) from dual gruop by id,usernmae
结果为:
ID USERNAME TYPE
1 刘 下,来
2 龙 啊 ,是 ,的
oracle_列转行
原文:http://www.cnblogs.com/LZXX/p/7054410.html