刚才给我短消息的前辈 : 您好 ,您的方法是对的,关键在 调用时要显式的说明返回参数 。
存储过程 : CREATE proc dbo.getmoney
@name char(20),@theMoney Float output
as
begin
select @theMoney = money from one where name = @name
--select @theMoney as Result //
end 代码 : with ADOQuery2 do
begin
Close ;
Sql.Clear ;
Sql.Add('declare @a char(20),@b int') ;
Sql.Add('set @a = ''bbb''') ;
Sql.Add('set @b = 0') ;
P: Sql.Add('exec getmoney @a, @b output') ;//
Sql.Add('select @b as Result') ;
Edit2.Text := Sql.Text ;
Open ;
Label1.Caption := FieldByName('result').AsString ;
end;如果 P 行没有显式的写出 output ,则没有返回 。 谢谢您,原来一直没有发现,谢谢您
存储过程 : CREATE proc dbo.getmoney
@name char(20),@theMoney Float output
as
begin
select @theMoney = money from one where name = @name
--select @theMoney as Result //
end 代码 : with ADOQuery2 do
begin
Close ;
Sql.Clear ;
Sql.Add('declare @a char(20),@b int') ;
Sql.Add('set @a = ''bbb''') ;
Sql.Add('set @b = 0') ;
P: Sql.Add('exec getmoney @a, @b output') ;//
Sql.Add('select @b as Result') ;
Edit2.Text := Sql.Text ;
Open ;
Label1.Caption := FieldByName('result').AsString ;
end;如果 P 行没有显式的写出 output ,则没有返回 。 谢谢您,原来一直没有发现,谢谢您
IE6.01改动很大,和IE6.0完全不洋
我好像不可以,你再看看那个短消息可不可以用
http://expert.csdn.net/Expert/topic/1278/1278571.xml?temp=.7084772灌水:) 谢斑竹捧场 :)