Recordset: Declaring a Class for a Table (ODBC)
| Overview | How Do I | FAQ | Sample | | ODBC Driver List
This article applies to the MFC ODBC classes. For DAO recordsets, see the article DAO Recordset.
The most common recordset class opens a single table. To declare a recordset class for a single table, use ClassWizard. In ClassWizard, choose each column you want by naming a corresponding recordset field data member. See the article ClassWizard: Creating a Recordset Class.
Other uses for recordsets include:
Joining two or more tables.
Containing the results of a predefined query.
See Also Recordset: Creating and Closing Recordsets (ODBC), Recordset: Declaring a Class for a Predefined Query (ODBC), Recordset: Performing a Join (ODBC)