标签:
CREATE OR REPLACE TYPE tab_varchar2 AS TABLE OF VARCHAR2(4000) SELECT deptno, CAST(COLLECT(ename) AS tab_varchar2) AS emps FROM emp GROUP BY deptno; -- tab_varchar2 表示 varchar2(4000)的数组
Oralce聚合多行
原文地址:http://www.cnblogs.com/fkissx/p/5765446.html