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命令,任何工具都可以使用
熱點內容