CREATE or replace PACKAGE pipelined_pkg AS
TYPE emp_rt IS RECORD
(empno NUMBER(4)
, ename VARCHAR2(10)
, job VARCHAR2(9)
, mgr NUMBER(4)
, hiredate DATE
, sal NUMBER(7,2)
, comm NUMBER(7,2)
, deptno number(2)
, presntStatus Boolean default false
);
TYPE emp_ntt IS TABLE OF pipelined_pkg.emp_rt;
function pipelined_emp
RETURN pipelined_pkg.emp_ntt PIPELINED;
end pipelined_pkg;
/
當我嘗試編譯上面的代碼我得到布爾屬性的記錄類型,並使用記錄類型的管道函數
[ Error(17,15): PLS-00630: pipelined functions must have a supported collection return type ]
如果我刪除布爾屬性,它是compling罰款。
難道不可能在記錄類型布爾屬性,並使用管道函數記錄類型?