在HELP中对RequestLive是这样描述的:
Set RequestLive to True to request a live result set. Setting RequestLive to True
does not guarantee that a live result set is returned by the BDE. The BDE returns
a live result set only if the SELECT syntax of the query conforms to the syntax
requirements for a live result set.
If RequestLive is True, but the syntax does not conform to the requirements, the BDE
returns a read-only result set for Paradox or dBASE, or an error return code for
remote servers.
After activating the TQuery, inspect the CanModify property to determine whether the
request for a live result set was successful.
Note:
All multi-table queries return read-only result sets. Other conditions
may cause a query to return a read-only result set. For local tables (such as dBASE
and Paradox), see the local SQL help file for rules governing live result sets (updatable
queries). For other table types (such as InterBase, Oracle, and Sybase), consult the
documentation for the specific database system.
这就说明返回的结果集是否可编辑是有条件的,但这并不能说返回的结果集绝对不可编辑。通过一定
的方法可以说所有的结果集都是可编辑的。这就是通过设置TQUERY的CachedUpdates:=TRUE;
然后设置属性UpdateObject:=UpdateSQL其中UpdateSQL为一TUpdateSQL对象。
设置这两个属性后就可以通过TUpdateSQL的方法进行数据的各种处理。
在DFW上有过讨论,具体的最好去看HELP