Q
qbasten
Unregistered / Unconfirmed
GUEST, unregistred user!
存储过程如下:(delphi6 + sql 7.0)
CREATE PROCEDURE maxno @maxid int output AS
select max(user_id) from tbcard
执行时
storedproc2.Prepare;
storedproc2.ExecProc;
edtvalue.text:= storedproc2.ParamByName('@maxid').AsString;
但不知为何edtvalue.text始终为0
CREATE PROCEDURE maxno @maxid int output AS
select max(user_id) from tbcard
执行时
storedproc2.Prepare;
storedproc2.ExecProc;
edtvalue.text:= storedproc2.ParamByName('@maxid').AsString;
但不知为何edtvalue.text始终为0