请问哪里出错了?
规格:
CREATE OR REPLACE PACKAGE CTI_MATRIX.AMD AS
TYPE REF_CURSOR IS REF CURSOR;
PROCEDURE AMD_NEEDMSG (v_CRN IN VARCHAR2, return_recordset OUT REF_CURSOR);
END AMD;
身体:
CREATE OR REPLACE PACKAGE BODY CTI_MATRIX.AMD AS
PROCEDURE AMD_NEEDMSG (v_CRN IN VARCHAR2, return_recordset OUT REF_CURSOR)
IS
BEGIN
--
END AMD_NEEDMSG;
END AMD;
来自 TOAD 的失败块:
DECLARE
RETURN_RECORDSET AMD.REF_CURSOR;
BEGIN
RETURN_RECORDSET := NULL;
CTI_MATRIX.AMD.AMD_NEEDMSG ( '123456789', RETURN_RECORDSET );
END;
错误:PLS-00382 表达式类型错误,第 5 行