/**************************************
**函数:listagg
**作用:列连接
**时间:2016-7-8
**内容:语法和使用案例
**************************************/
–1 语法
listagg(measure_expr,’delimiter’) within group (order_by_clause) over(query_partition_clause)
–注意:order_by_clause不在over()里面
–注:语法解读
The arguments to the function are subject to the following rules:
•The measure_expr can be any expression. Null values in the measure column are ignored.
•The delimiter_expr designates the string that is to separate the measure values. This clause is optional and defaults to NULL.
定界符
•The order_by_clause determines the order in which the concatenated values are returned. The function is deterministic only if the ORDER BY column list achieved unique ordering.
The return data type is RAW if