oraclecall存储过程
发布时间: 2025-07-31 20:04:47
1. oracle调用存储过程,call和exec有什么区别
oracle 中调用存储过程可以用exec,或begin……end,但无法使用call。
但exec只可以在命令行下执行,如sqlplus下或plsql的命令窗口下执行,但begin……end可以用第三方工具或命令行下执行。
如图:
命令下执行:
2. C# 调用oracle 存储过程 报错PLS-00306: wrong number or types of arguments in call to 'FETCH_INP_FEE'
create or replace procere abc.bcd(t1 in varchar2,t2 in number,t3 out varchar2 ,t4 out number,t5 out number , t6out number ,t7 out number )
/* 这部分要注释掉,你的参数是传入的,这里不能重复申明
declare
t3 varchar2(20);
t4 number;
t5 number;
t6 number;
t7 number;
*/
begin
inpbill.fetch_inp_fee('123', 1, t3, t4, t4, t5, t7);
end;
3. Oracle_存储过程调用的疑问(CALL, EXECUTE的区别)
exec是sqlplus的命令,只能在sqlplus中使用。
call是sql命令,任何工具都可以使用
热点内容