TUpdateSQL不用也可以, 只要TQuery的RequestLive设为True就可以了.
而CachedUpdate打开, 如果不ApplyUpdates, 数据是不会变的.
根据你的问题, 估计是TUpdateSQL里的update写错了. 不如把它取消吧.
TQuery的CachedUpdate也不要打开
而CachedUpdate打开, 如果不ApplyUpdates, 数据是不会变的.
根据你的问题, 估计是TUpdateSQL里的update写错了. 不如把它取消吧.
TQuery的CachedUpdate也不要打开
with QueryA do
begin
ApplyUpdates; {try to write the updates to the database};
CommitUpdates; {on success, clear the cache}
end;
顺便讲一下,对于local database Table有更好的效率