Oracle® Objects for OLE C++ Class Library Developer's Guide 10g Release 2 (10.2) B14308-01 |
|
Applies To
Description
This method returns the Oracle type of the database field or parameter.
Usage
short GetServerType(void) const
Remarks
Every column in an Oracle database and every column computed in a SQL statement has a type. This method returns the type of the field. It will have one of the following values:
Value |
Description |
---|---|
OTYPE_VARCHAR2 | Varchar2, variable length character. |
OTYPE_NUMBER | Numeric field. |
OTYPE_LONG | Long text (> 2000 bytes). |
OTYPE_ROWID | Oracle rowid. |
OTYPE_DATE | A date. |
OTYPE_RAW | Raw bytes. |
OTYPE_LONGRAW | Long blob of bytes (generally > 255 bytes). |
OTYPE_CHAR | Fixed-length text. |
OTYPE_MSLABEL | Special type for Trusted Oracle. |
OTYPE_CURSOR | PL/SQL cursor type |
OTYPE_OBJECT | Object |
OTYPE_REF | Ref |
OTYPE_COLL | Collection |
OTYPE_BLOB | Blob |
OTYPE_CLOB | Clob |
OTYPE_BFILE | Bfile |
OTYPE_VARRAY | VARRAY |
OTYPE_TABLE | Table |
These values can be found in the ORACLE_BASE\ORACLE_HOME\oo4o\oraconst.txt file. For more information on these types, see the Oracle SQL Language Reference Manual.
Return Value
The type of the field, or 0 on error.