J
jeary
Unregistered / Unconfirmed
GUEST, unregistred user!
with tempdataset do
begin
Close;
CommandText:='select sum(1+8)/2 as ba from ingoods where number='123456'';
Execute;
Open;
end;
showmessage(floattostr(tempdataset.fieldbyname('ba'))); //值等于4
為何?
begin
Close;
CommandText:='select sum(1+8)/2 as ba from ingoods where number='123456'';
Execute;
Open;
end;
showmessage(floattostr(tempdataset.fieldbyname('ba'))); //值等于4
為何?