LISTAGG WITHIN GROUP函数使用方法

转自:https://www.cnblogs.com/Roobbin/p/10733958.html

1.listagg() WITHIN GROUP ()  将多行合并成一行

select listagg (列名, ',') WITHIN GROUP (ORDER BY 列名) as 别名 from 表名 where 条件表达式;

 

posted @ 2020-06-11 15:26  Sunor  阅读(1742)  评论(0编辑  收藏  举报