我用的是本地paradox表,代码最简化为:
with table1 do
begin
cachedupdates:=true;
open;
append;
fieldbyname('a').asstring:='first record';
post;
append;
fieldbyname('a').assring:='second record';
post;
applyupdates;
commitupdates;
end;
显示错误信息:Table is not indexed.
为何这样?