天天看点

LISTAGG使用

SELECT LISTAGG(fun_getaaa103('AAE140', a.aae140), ',') WITHIN GROUP(ORDER BY a.aae140) AS aae140str
  FROM ac02 a
 where a.aac001 = '10002070436';

SELECT * FROM ac02 a where a.aac001 = '10002070436';      
LISTAGG使用

查询结果:

LISTAGG使用