PL/SQL中执行存储过程
DECLARE oreturn_code VARCHAR2(100); --这个是输出参数,需要声明,并确保类型正确 oerrmsg VARCHAR2(100); oriskscore VARCHAR2(100); oinputdate VARCHAR2(100); BEGIN IF_GET_LATEST_RISK_SCORE('67900208', null,oreturn_code,oerrmsg,oriskscore,oinputdate); --这个是你要调用的存储过程的名字+输入参数的具体内容, 和输出参数(是declare下面声明的变量) Dbms_Output.Put_Line(oreturn_code); --这个是得到输出参数的内容, 你需要在执行窗口右边的那个output窗口看结果 Dbms_Output.Put_Line(oerrmsg); Dbms_Output.Put_Line(oriskscore); Dbms_Output.Put_Line(oinputdate); END; |