Table 13-2 shows how the Oracle data types are mapped to the standard ODBC data types.
“Unicode Support” lists Oracle to Unicode data type mappings.
The Oracle driver does not support any object types (also known as abstract data types). When the driver encounters an object type during data retrieval, it will return an Unknown Data Type error (SQL State HY000).
See “Retrieving Data Type Information” for more information about data types.
Oracle 9i R2 and higher supports the XMLType data type. The driver supports tables containing columns whose data type is specified as XMLType.
When inserting or updating XMLType columns, the data to be inserted or updated must be in the form of an XMLType data type. The database provides functions to construct XMLType data. The xmlData argument to xmltype( ) may be specified as a string literal.
The PURCHASEORDER table contains one column—PODOCUMENT—with a data type of XMLType (
sys.XMLTYPE). The next step is to insert one purchase order, created by the static function
sys.XMLTYPE.createXML: