D
dfeng_shen
Unregistered / Unconfirmed
GUEST, unregistred user!
請教各位,
在delphi程序中,如何獲取storedproc中變量的值,存儲過程如下:在
程序中,我如何得到@DayMk,@Save,@Rep的值.
CREATE Proc Store1(@FLNO int,@Date datetime,@Depa varchar(3)) as
declare @DayMk int, @Save int, @Rep int
IF exists (select * from table1 where pqty_flno=@flno and
pqty_date=@date and pqty_depa=@depa)
begin
select @DayMk =Pqty_DayMk from table1
select @Save=Pqty_YesSa+Pqty_ToSav-Pqty_SavTo from table1
select @Rep =Pqty_YesRe+Pqty_ToRep-Pqty_RepTo from table1
End
在delphi程序中,如何獲取storedproc中變量的值,存儲過程如下:在
程序中,我如何得到@DayMk,@Save,@Rep的值.
CREATE Proc Store1(@FLNO int,@Date datetime,@Depa varchar(3)) as
declare @DayMk int, @Save int, @Rep int
IF exists (select * from table1 where pqty_flno=@flno and
pqty_date=@date and pqty_depa=@depa)
begin
select @DayMk =Pqty_DayMk from table1
select @Save=Pqty_YesSa+Pqty_ToSav-Pqty_SavTo from table1
select @Rep =Pqty_YesRe+Pqty_ToRep-Pqty_RepTo from table1
End