TCustomADODataSet::UpdateBatch函数的用法

TCustomADODataSet::UpdateBatch

null

将未处理的更新保存到数据库。

enum TAffectRecords { arCurrent, arFiltered, arAll, arAllChapters };

void __fastcall UpdateBatch(TAffectRecords AffectRecords = arAll);

函数说明;

调用 UpdateBatch 函数将对数据集dataset所有修改写入数据库文件。

in batch update mode to the associated database. The AffectRecords parameter may be any one of the following TAffectRecords values: Option Meaning arCurrent Only the updates for the current row are applied. arFiltered Only updates for rows matching the current filter are applied. arAll Updates for all rows are applied. arAllChapters Update affects all chapters (ADO chapters) Note: To use batch updating, the CursorType property of the dataset component must be either ctKeySet (the default) or ctStatic and the LockType property must be ltBatchOptimistic.

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容