CREATE OR REPLACE
PROCEDURE javao
(
numberw IN number,
emp_name OUT SYS_REFCURSOR)
IS
BEGIN
OPEN emp_name FOR SELECT * FROM employees WHERE emp_no = numberw;
END;
EXEC javao(1)
表结构
Name Type
------------- --------
EMP_NO NUMBER
EMP_NAME VARCHAR2(30 BYTE)
ADDRESS VARCHAR2(15 BYTE)
PH_NO NUMBER(10)
执行上述存储过程时出现错误。该错误是
Error report:
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'JAVAO'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
06550. 00000 - "line %s, column %s:\n%s"
*Cause: Usually a PL/SQL compilation error.
*Action:
请尝试帮助我的代码有什么问题。