我在同一个包中有 2 个程序。我希望 QOT_LST_M_QOT_PRE
在QOT_LST_M_SEC_EXC_PRE
. 在 QOT_LST_M_SEC_EXC_PR
EI 中希望找到参数 - x_qot_id,使用此参数调用 QOT_LST_M_QOT_PRE 并返回它而不是语句。我可以做吗?如何。我的意思是
PROCEDURE QOT_LST_M_SEC_EXC_PRE (
i_sec_id IN NUMBER,
i_exc_id IN NUMBER,
o_recordset OUT SYS_REFCURSOR ) IS x_qot_id NUMBER(10);
------------------------------
BEGIN
---------------------------------------------------------------
--call a function instead of writing query from this function
open o_recordset for QOT_LST_M_QOT_PRE(x_qot_id, o_recordset);
----------------------------------------------------------------
END QOT_LST_M_SEC_EXC_PRE;
PROCEDURE QOT_LST_M_QOT_PRE
(
i_qot_id IN NUMBER,
o_recordset OUT SYS_REFCURSOR
--------------------------------
);