T
terry_lzs
Unregistered / Unconfirmed
GUEST, unregistred user!
我需要一个存储过程将一张表中的某一字段值加1,然后返回这个值
CREATE PROCEDURE GetNumber
@Fieldname varchar(50),
@Reccount int output
AS
begin
update NumberGroup
set Idnumber=Idnumber+1,@Reccount=Idnumber
where Idname=@Fieldname
end;
可是我在delphi中用adostoredproc调用时一直都出错,用active:=true提示
commandtext does not returen a result set
过程我该怎么写?控件我要怎么设置?谢谢了
CREATE PROCEDURE GetNumber
@Fieldname varchar(50),
@Reccount int output
AS
begin
update NumberGroup
set Idnumber=Idnumber+1,@Reccount=Idnumber
where Idname=@Fieldname
end;
可是我在delphi中用adostoredproc调用时一直都出错,用active:=true提示
commandtext does not returen a result set
过程我该怎么写?控件我要怎么设置?谢谢了