表结构
Name Null Type
-------- ---- ------------
EMP_NO NUMBER
EMP_NAME VARCHAR2(30)
ADDRESS VARCHAR2(15)
PH_NO NUMBER(10)
DPT_NO NUMBER
程序
create or replace procedure procedure1 (nom in employees.emp_no%type,
vemp_name out employees.emp_name%type)
is
begin
select emp_name into vemp_name from employees where emp_no=nom;
end;
称呼
exec procedure1(1);
它显示错误,例如
错误
PLS-00306: wrong number or types of arguments in call to 'PROCEDURE1'
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:
我不知道为什么它会显示该错误。请给我建议。