11g里面用listagg,10g里面用wm_concat
select listagg(name,',') within (order by id) from table
select wm_concat(name) from table
oracle将查询结果拼装成字符串
最新推荐文章于 2024-03-01 16:09:58 发布
本文对比了Oracle 11g中使用的LISTAGG函数与10g中的WM_CONCAT函数,展示了如何在不同版本的Oracle数据库中实现字符串聚合操作。
1323

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



