Home > Back-end >  CRecordset object how to obtain the specified data? Rather than the whole table.
CRecordset object how to obtain the specified data? Rather than the whole table.

Time:09-22

Today in learning
CDatabase kind
CRecordset class
Know when is the ODBC database access
But CRecordset object when the content of the access to the database how to get the content??
The code is as follows:
CDatabase db.
The db. The Open (" TestDB ")

CRecordset set (& amp; Db);
Iset. Open (CRecordset: : forwardOnly, "select * from TBL_MSG");


Set. The Close ();
The Close ();

My problem is that the data is saved in the set object?
The object data in how do you get?
CRecordset class can point to find? Rather than a set?
For example, select the field name from the name of the table where conditions
Fixed point on his own to find a data
To find how to get the value after??
  • Related