Oracle Objects for OLE C++ Class Library Release 9.2 Part Number A95896-01 |
|
Applies To
Description
This method returns the number of fields in each record.
Usage
int GetFieldCount(void) const
Return Value
The number of fields in each record; 0 on error.
Example
This example demonstrates GetFieldCount.
// open a database
ODatabase odb("ExampleDB", "scott", "tiger");
// open a dynaset
ODynaset dyn(odb, "select empno, ename, sal, comm from datatable");
// how many fields was that?
int nfields = dyn.GetFieldCount();
// nfields is 4
|
Copyright © 1998, 2002 Oracle Corporation. All Rights Reserved. |
|