① 关于调用带输出参数的oracle存储过程
可以通过以下方式来进行带参数存储过程执行。
sql">SQL>createorreplaceproceresp_pro10
2(spnoinnumber,spnameoutvarchar2)is
3begin
4select'ename'intospnamefromal;
5end;
6/
过程已创建。
SQL>setserveroutputon
SQL>DECLARE
2spnonumber;
3spnamevarchar2(10);
4BEGIN
5sp_pro10(spno,spname);
6
7dbms_output.put_line(spname);
8END;
9/
ename
PL/SQL过程已成功完成。
② oracle中带输出参数的存储过程怎么调用
--
查看存储过程执行时的打印信息
set
serveroutput
on
--
执行存储过程
execute
$proc_name;
--
带有输出参数的情况下
var
$variable
$type($length);
execute
$proc_name(:$variable);
--
查看存储过程内容
单引号内大写
select
text
from
all_source
where
type='procere'
and
name='$proc_name'
(and
owner='$owner');
--
重新编译存储过程
alter
procere
$proc_name
compile
(debug);
③ oracle带参(传入,传出)的存储过程怎么执行
1、新建存储过程,Create or ReplaceProcere CHK_SYS_EMP 检查系统工号。
④ oracle中怎么执行带有输出参数的存储过程,在程序中我知道怎么调用,
1、新建一个存储过程(Procere)。
⑤ oracle数据库job怎么调用含参数的存储过程
dbms_job.submit(test_job_really,'test_jobproce("zhangsan");',sysdate,'sysdate+1/1440');
改为:
dbms_job.submit(test_job_really,'test_jobproce(''zhangsan'');',sysdate,'sysdate+1/1440');
注意:zhangsan的两边,不是双引号,是两个单引号!
如有帮助,请采纳!