如何调用oracle中的存储过程了

2025-02-23 16:00:00
推荐回答(4个)
回答1:

执行方式没问题,而你执行有错,那是因为你的存储过程有语法错误,修改如下:

create or replace procedure myprocedure0813
as
i integer;
begin
for i in 1..10
loop
insert into mytable0813(id,name,age) values(i,'ysy'||i,i);
end loop;
commit;
end;

回答2:

方法一:
exec procedure_name;
execute procedure_name;
方法二:

call procedure_name;
方法三:
begin
execute procedure_name;end;
end;

回答3:

你的参数变换的种类多吗,我们做报表,每天晚上把所有的参数变换都做一次分析,然后保存在一个中间表中,前台WEB页面查询的实际上是中间表的结果!

回答4:

exec id name age

类似这样的例子
exec myprocedure0813 (103,155,44)