一些低版本Oracle 无法兼容 listagg函数
select listagg(需要合并的字段名称, ',')within group ( order by 需要合并的字段名称 ) as 别名 from 表名 where 条件 GROUP BY 需要合并的字段名称;
SELECT to_char(wmsys.wm_concat (需要合并的字段名称)) as 别名 FROM 表名 where 条件 GROUP BY 需要合并的字段名称
一些低版本Oracle 无法兼容 listagg函数
select listagg(需要合并的字段名称, ',')within group ( order by 需要合并的字段名称 ) as 别名 from 表名 where 条件 GROUP BY 需要合并的字段名称;
SELECT to_char(wmsys.wm_concat (需要合并的字段名称)) as 别名 FROM 表名 where 条件 GROUP BY 需要合并的字段名称