LISTAGG WITHIN GROUP函数使用方法
1.listagg() WITHIN GROUP () 将多行合并成一行
select 列名1,listagg (列名, ',') WITHIN GROUP (ORDER BY 列名) OVER(partition by 列名1) as 别名 from 表名 where 条件表达式;
1.listagg() WITHIN GROUP () 将多行合并成一行
select 列名1,listagg (列名, ',') WITHIN GROUP (ORDER BY 列名) OVER(partition by 列名1) as 别名 from 表名 where 条件表达式;