C
coffeeffee
Unregistered / Unconfirmed
GUEST, unregistred user!
下面的方法行吗?(Delphi4+oracle8)
存储过程
procedure testa(
tel in varchar, //输入参数
o_result out varchar2 //输出参数)
as
begin
o_result:='0';
exception
when others then
o_result:='9';
end testa;
调用的代码为:
up_str:='select * from testatel)';
with query3 do
begin
close;
sql.Text:=up_str;
Params.AddParam(Params.CreateParam(ftString,'tel',ptInput));
ParamByname('tel').AsString:='111';
open;
end;
<<Delphi5开发人员指南>> 1042页说可以如此调用,可我试来试去都不行!(Delphi4+oracle8)
存储过程
procedure testa(
tel in varchar, //输入参数
o_result out varchar2 //输出参数)
as
begin
o_result:='0';
exception
when others then
o_result:='9';
end testa;
调用的代码为:
up_str:='select * from testatel)';
with query3 do
begin
close;
sql.Text:=up_str;
Params.AddParam(Params.CreateParam(ftString,'tel',ptInput));
ParamByname('tel').AsString:='111';
open;
end;
<<Delphi5开发人员指南>> 1042页说可以如此调用,可我试来试去都不行!(Delphi4+oracle8)