11g里面用listagg,10g里面用wm_concat
select listagg(name,',') within (order by id) from table
select wm_concat(name) from table
oracle将查询结果拼装成字符串
本文对比了Oracle 11g中使用的LISTAGG函数与10g中的WM_CONCAT函数,展示了如何在不同版本的Oracle数据库中实现字符串聚合操作。
本文对比了Oracle 11g中使用的LISTAGG函数与10g中的WM_CONCAT函数,展示了如何在不同版本的Oracle数据库中实现字符串聚合操作。
11g里面用listagg,10g里面用wm_concat
select listagg(name,',') within (order by id) from table
select wm_concat(name) from table

被折叠的 条评论
为什么被折叠?