with MyQuery do begin Close; SQL.Clear; SQL.add('select * from MyTable '); Open; for i := 0 to recordcount - 1 do begin fieldbyname('group').asinteger(asfloat) := 256; end; end;
update a1 set [group]=256 group 是关键字,要用[]引起来才能让系统认为是你自己的字段
update smart set smart."group"=256 update smart set smart."group"=256 update smart set smart."group"=256 update smart set smart."group"=256 update smart set smart."group"=256 update smart set smart."group"=256 update smart set smart."group"=256 update smart set smart."group"=256 update smart set smart."group"=256 update smart set smart."group"=256 update smart set smart."group"=256
update smart set smart."group"=256 update smart set smart."group"=256 update smart set smart."group"=256 update smart set smart."group"=256
用iGroup不是就好了
begin
Close;
SQL.Clear;
SQL.add('select * from MyTable ');
Open;
for i := 0 to recordcount - 1 do
begin
fieldbyname('group').asinteger(asfloat) := 256;
end;
end;
[group] 不行的, 是别人设计的数据库,
不过,我想既然都能用了,你看看人家是怎么写记录的。
不行的话,可以试试EDIT。POST。
你的办法应该可以的,去试去了!
update a1 set a1."group" = 256
group 是关键字,要用[]引起来才能让系统认为是你自己的字段
update smart set smart."group"=256
update smart set smart."group"=256
update smart set smart."group"=256
update smart set smart."group"=256
update smart set smart."group"=256
update smart set smart."group"=256
update smart set smart."group"=256
update smart set smart."group"=256
update smart set smart."group"=256
update smart set smart."group"=256
update smart set smart."group"=256
update smart set smart."group"=256
update smart set smart."group"=256