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。我不知道那裏出了什麼問題。請指教?
「給出錯誤」? –
嗨,託尼,是的,這是給錯誤。 –
我會再試一次:-) - 它給出了什麼錯誤? –