--分组加排序,数据量大时结果会比较慢
SELECT listagg(t.ename,‘,‘) WITHIN GROUP(ORDER BY t.sal) FROM scott.emp t;
查询结果为CLOB
SELECT wm_concat(t.ename) FROM scott.emp t ORDER BY t.sal;
标签:查询 -- gpo acl listagg agg scott 数据 class
--分组加排序,数据量大时结果会比较慢
SELECT listagg(t.ename,‘,‘) WITHIN GROUP(ORDER BY t.sal) FROM scott.emp t;
查询结果为CLOB
SELECT wm_concat(t.ename) FROM scott.emp t ORDER BY t.sal;
标签:查询 -- gpo acl listagg agg scott 数据 class
原文地址:https://www.cnblogs.com/ViokingJava/p/8184899.html