0
我正在使用批量收集并希望将数据复制到refcursor,以便我可以返回过程中的数据。以下是我正在尝试的内容将批量收集数据复制到refcursor
PROCEDURE Pr_Get_Perf_Div_By_Paydate (
p_Cur_Out OUT SYS_REFCURSOR
)
IS
type ab_rec is record (
Plan_No number
, Draft_Invoice_No varchar(20)
);
type ab_nt is table of ab_rec;
l_invoices ab_nt;
BEGIN
SELECT Plan_No,Draft_Invoice_No
bulk collect into l_invoices
FROM tb_Invoice
Open p_Cur_Out for
Select * from TABLE (CAST (l_invoices AS ty_pa_output_tbl_t));
END;
Select statement is given error。我不知道那里出了什么问题。请指教?
“给出错误”? –
嗨,托尼,是的,这是给错误。 –
我会再试一次:-) - 它给出了什么错误? –