1:创建以下的PL/SQL过程,报Warning: Procedure created with compilation errors.
SQL> createprocedure inquire(stu_no in students.no%type,
stu_name out students.name%type )
is
BEGIN
select name into stu_name from students where no=stu_no;
END;
end inquire;
/
2:执行时报
SQL> execute inquire(02,:inq_name);
begin inquire(02,:inq_name); end;
*
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00905: object FJRUN.INQUIRE is invalid
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
3:inq_name值为空。