这种存储过程不能直接用call调用,需要在oracle函数调用。使用方法为:call stu_proc2(name) 有输入、输出的存储过程 create or replace procedure stu_proc3(pname out student.sname%type,pname out student.sname...
如果你要调用一个不知道名字的过程(当运行时才知道名字): create procedure run_proc(proc_name in varchar2,table_name in varchar2)as begin execute immediate 'call"'|proc_name|'"(:proc_name)' using table...
先写两个存储过程 test01 和 test02: CREATE OR REPLACE PROCEDURE test01 IS v_id emp.empno%TYPE;BEGIN UPDATE emp SET ename='test01' WHERE empno=7369;this will raise no_data_found exception*/ SELECT ...