pb如何呼叫儲存過程

2021-04-17 02:04:30 字數 539 閱讀 8100

create or replace procedure testadd(id in number,name in varchar2) is

begin

insert into leadtest(id,name) values(id,name);

end testadd;

long     lngid

string    strname

lngid = 7

strname = "f"

// declare testinsert procedure for

//  testadd(:lngid,:strname);

declare update_stok procedure for

testadd(:lngid,:strname) ;

execute update_stok ;

close   update_stok ;

commit ;

select name into :strname from leadtest where id = 1;

pb呼叫oracle中的儲存過程

1 現在oracle中建立乙個儲存過程 create or replace procedure proc jbylbxqk as ny in string is ll tczz number 12 ll tctx number 12 ll dbzz number 12 ll dbtx number ...

PB呼叫帶返回引數的儲存過程

string ls doc no declare sp generate doc no procedure for sp generate doc no comp code comp code,doc type doc type,doc month doc month,doc year doc ye...

DELPHI如何呼叫儲存過程

第一步建立儲存過程 create proc myabc a int b int,c int output asset c a b 在sql中使用查詢分析器執行 declare a int,b int,c int set a 250 set b 40 exec myabc a,b,c output 注...