请教一个关于在PL/SQL中执行存储过程的问题?

[复制链接]
查看11 | 回复5 | 2015-3-6 11:57:31 | 显示全部楼层 |阅读模式
我想在PL/SQL中想调用一个业务存储过程,代码如下:
declare
custcredite number;
begin
execute up_getcustcredit_fromintfi('004','001',custcredit);
dbms_output.put_line(custcredit);
end;
其中up_getcustcredit_fromintfi是存储过程,
custcredite 是输出参数
为什么执行老是报
ora-06550:第4行,第13列:
PLS-00103:出现符号"up_getcustcredit_fromintfi"在需要下列之一时:
:=.
(@ %;
符号 ":="被替换为"up_getcustcredit_fromintfi"后继续
请高手解答!!!!!!
回复

使用道具 举报

千问 | 2015-3-6 11:57:31 | 显示全部楼层
直接调用另一存储过程
up_getcustcredit_fromintfi('004','001',custcredit);
或者execute immediate up_getcustcredit_fromintfi('004','001',custcredit);
试试,很久没有写存储过程了.
回复

使用道具 举报

千问 | 2015-3-6 11:57:31 | 显示全部楼层
begin
execute up_getcustcredit_fromintfi('004','001',custcredit);
end;
这样试试
回复

使用道具 举报

千问 | 2015-3-6 11:57:31 | 显示全部楼层
去掉execute
回复

使用道具 举报

千问 | 2015-3-6 11:57:31 | 显示全部楼层
去掉execute就好了
回复

使用道具 举报

千问 | 2015-3-6 11:57:31 | 显示全部楼层
非常感谢大家的回帖。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行