M
myjane
Unregistered / Unconfirmed
GUEST, unregistred user!
var s,d:integer;
begin
s:=ADOQuery1dingliang.asinteger-ADOQuery1daoliang.AsInteger;
with adoquery1 do
begin
close;
sql.Clear;
sql.add('update zb set zb.cha=:ch');
parameters.parambyname('ch').value:=s;//ADOQuery1dingliang.asinteger-ADOQuery1daoliang.AsInteger;
execsql;
end;
end;
更新之后cha字段全一样,高手那错了
begin
s:=ADOQuery1dingliang.asinteger-ADOQuery1daoliang.AsInteger;
with adoquery1 do
begin
close;
sql.Clear;
sql.add('update zb set zb.cha=:ch');
parameters.parambyname('ch').value:=s;//ADOQuery1dingliang.asinteger-ADOQuery1daoliang.AsInteger;
execsql;
end;
end;
更新之后cha字段全一样,高手那错了