分享
 
 
 

CRecordset

王朝百科·作者佚名  2010-06-20
窄屏简体版  字體: |||超大  

CRecordset Class MembersData Members

Construction

Recordset Attributes

Recordset Update Operations

Recordset Navigation Operations

Other Recordset Operations

Recordset Overridables

Data Membersm_hstmt

Contains the ODBC statement handle for the recordset. TypeHSTMT.

m_nFields

Contains the number of field data members in the recordset. TypeUINT.

m_nParams

Contains the number of parameter data members in the recordset. TypeUINT.

m_pDatabase

Contains a pointer to theCDatabaseobject through which the recordset is connected to a data source.

m_strFilter

Contains aCStringthat specifies a Structured Query Language (SQL)WHEREclause. Used as a filter to select only those records that meet certain criteria.

m_strSort

Contains aCStringthat specifies an SQLORDER BYclause. Used to control how the records are sorted.

ConstructionCRecordset

Constructs aCRecordsetobject. Your derived class must provide a constructor that calls this one.

Open

Opens the recordset by retrieving the table or performing the query that the recordset represents.

Close

Closes the recordset and the ODBCHSTMTassociated with it.

Recordset AttributesCanAppend

Returns nonzero if new records can be added to the recordset via theAddNewmember function.

CanBookmark

Returns nonzero if the recordset supports bookmarks.

CanRestart

Returns nonzero ifRequerycan be called to run the recordset’s query again.

CanScroll

Returns nonzero if you can scroll through the records.

CanTransact

Returns nonzero if the data source supports transactions.

CanUpdate

Returns nonzero if the recordset can be updated (you can add, update, or delete records).

GetODBCFieldCount

Returns the number of fields in the recordset.

GetRecordCount

Returns the number of records in the recordset.

GetStatus

Gets the status of the recordset: the index of the current record and whether a final count of the records has been obtained.

GetTableName

Gets the name of the table on which the recordset is based.

GetSQL

Gets the SQL string used to select records for the recordset.

IsOpen

Returns nonzero ifOpenhas been called previously.

IsBOF

Returns nonzero if the recordset has been positioned before the first record. There is no current record.

IsEOF

Returns nonzero if the recordset has been positioned after the last record. There is no current record.

IsDeleted

Returns nonzero if the recordset is positioned on a deleted record.

Recordset Update OperationsAddNew

Prepares for adding a new record. CallUpdateto complete the addition.

CancelUpdate

Cancels any pending updates due to anAddNeworEditoperation.

Delete

Deletes the current record from the recordset. You must explicitly scroll to another record after the deletion.

Edit

Prepares for changes to the current record. CallUpdateto complete the edit.

Update

Completes anAddNeworEditoperation by saving the new or edited data on the data source.

Recordset Navigation OperationsGetBookmark

Assigns the bookmark value of a record to the parameter object.

Move

Positions the recordset to a specified number of records from the current record in either direction.

MoveFirst

Positions the current record on the first record in the recordset. Test forIsBOFfirst.

MoveLast

Positions the current record on the last record or on the last rowset. Test forIsEOFfirst.

MoveNext

Positions the current record on the next record or on the next rowset. Test forIsEOFfirst.

MovePrev

Positions the current record on the previous record or on the previous rowset. Test forIsBOFfirst.

SetAbsolutePosition

Positions the recordset on the record corresponding to the specified record number.

SetBookmark

Positions the recordset on the record specified by the bookmark.

Other Recordset OperationsCancel

Cancels an asynchronous operation or a process from a second thread.

FlushResultSet

Returns nonzero if there is another result set to be retrieved, when using a predefined query.

GetFieldValue

Returns the value of a field in a recordset.

GetODBCFieldInfo

Returns specific kinds of information about the fields in a recordset.

GetRowsetSize

Returns the number of records you wish to retrieve during a single fetch.

GetRowsFetched

Returns the actual number of rows retrieved during a fetch.

GetRowStatus

Returns the status of the row after a fetch.

IsFieldDirty

Returns nonzero if the specified field in the current record has been changed.

IsFieldNull

Returns nonzero if the specified field in the current record is Null (has no value).

IsFieldNullable

Returns nonzero if the specified field in the current record can be set to Null (having no value).

RefreshRowset

Refreshes the data and status of the specified row(s).

Requery

Runs the recordset’s query again to refresh the selected records.

SetFieldDirty

Marks the specified field in the current record as changed.

SetFieldNull

Sets the value of the specified field in the current record to Null (having no value).

SetLockingMode

Sets the locking mode to “optimistic” locking (the default) or “pessimistic” locking. Determines how records are locked for updates.

SetParamNull

Sets the specified parameter to Null (having no value).

SetRowsetCursorPosition

Positions the cursor on the specified row within the rowset.

Recordset OverridablesCheck

Called to examine the return code from an ODBC API function.

CheckRowsetError

Called to handle errors generated during record fetching.

DoBulkFieldExchange

Called to exchange bulk rows of data from the data source to the recordset. Implements bulk record field exchange (Bulk RFX).

DoFieldExchange

Called to exchange data (in both directions) between the field data members of the recordset and the corresponding record on the data source. Implements record field exchange (RFX).

GetDefaultConnect

Called to get the default connect string.

GetDefaultSQL

Called to get the default SQL string to execute.

OnSetOptions

Called to set options for the specified ODBC statement.

SetRowsetSize

Specifies the number of records you wish to retrieve during a fetch.

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有