oracle将查询结果拼装成字符串

11g里面用listagg,10g里面用wm_concat
select listagg(name,',') within (order by id) from table

select wm_concat(name) from table

猜你喜欢

转载自269629151.iteye.com/blog/1872800