我有一个新的存储过程,但在调用时出错,
CREATE OR REPLACE PROCEDURE SCOTT.getempsal( p_emp_id IN NUMBER,p_emp_month IN CHAR,p_emp_sal OUT INTEGER) AS BEGIN SELECT EMP_SAL INTO p_emp_sal FROM EMPLOYEE_SAL WHERE EMP_ID = p_emp_id AND EMP_MONTH = p_emp_month; END getempsal;
并试图称之为:
getempsal(1,'JAN',OUT) --Invalid sql statement.