当前位置: 首页 > 网络学院 > 服务端脚本教程 > ADO > ADO Requery 方法

ADO
ADO DataTypes
ADO 摘要
ADO 实例

ADO Requery 方法


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 403 ::
收藏到网摘: n/a

The Requery method updates the data in a Recordset by re-executing the query that made the original Recordset.
Requery的作用是:通过重新执行对象所基于的查询语句,更新Recordset[记录集]对象中的数据。

Tip: Use this method to refresh the entire contents of a Recordset.
提示:适用这个方法可以刷新记录集的所有内容。

Note: With this method you call the Close and Open methods in one.
注意:通过适用这个方法,你可以在一个记录集中请求Close[关闭]何Open[打开]方法。

Syntax
语法

objRecordset.Requery options

Parameter参数 Description描述
options Optional. Specifies how to execute this command. Can be an ExecuteOptionEnum value
可选参数。指定一个ExecuteOptionEnum值,用于指明执行该指令的方法


ExecuteOptionEnum Values

Constant常量 Value值 Description描述
adOptionUnspecified -1 Unspecified command
指明为指定的指令
adAsyncExecute 16 The command should execute asynchronously. Cannot be combined with the CommandTypeEnum value adCmdTableDirect
指明指令是否需要异步执行。这个值不能与CommandTypeEnum 之中的adCmdTableDirect一起使用
adAsyncFetch 32 The remaining rows after the initial quantity specified in the CacheSize property should be retrieved asynchronously
指明在CacheSize属性中指定了初始量以后,是否应该异步获取保留行[remaining rows]
adAsyncFetchNonBlocking 64 The main thread never blocks while retrieving. If the requested row has not been retrieved, the current row automatically moves to the end of the file. If you open a Recordset from a Stream containing a persistently stored Recordset, adAsyncFetchNonBlocking will not have an effect; the operation will be synchronous and blocking. adAsynchFetchNonBlocking has no effect when the adCmdTableDirect option is used to open the Recordset
指示主要线程在提取期间从未堵塞。如果所请求的行尚未提取,那么当前行将自动移到文件末尾。如果打开的记录流中的记录固定地包含一个记录,那么adAsyncFetchNonBlocking将不会产生作用;才作程序将同时运行以及阻塞该常量。当adCmdTableDirect选项用于打开记录时,adAsynchFetchNonBlocking将不会产生任何作用
adExecuteRecord 512 The CommandText is a command or stored procedure that returns a single row which should be returned as a Record object
指明CommandText仅是返回一个单独行(该单独行作为一条记录对象返回)的一条指令或现存程序

评论 (0) All

登陆 | 还没注册?