10.12.2012 Views

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

LONG RAW I/O<br />

LONG VARRAW I/O<br />

OCCI BYTES I/O<br />

Data Conversions for Date, Timestamp, and Interval Datatypes<br />

Data Conversions<br />

You can also use one of the character data types for the host variable used in a fetch<br />

or insert operation from or to a datetime or interval column. <strong>Oracle</strong> will do the<br />

conversion between the character data type and datetime/interval data type for<br />

you.<br />

Data Conversions for Date, Timestamp, and Interval Datatypes<br />

External Types<br />

Internal Types<br />

VARCHAR,C<br />

HAR DATE TS TSTZ TSLTZ<br />

INTERVAL<br />

YEAR TO<br />

MONTH<br />

VARCHAR2, CHAR I/O I/O I/O I/O I/O I/O I/O<br />

STL STRING I/O I/O I/O I/O I/O I/O I/O<br />

DATE I/O I/O I/O I/O I/O - -<br />

OCCI DATE I/O I/O I/O I/O I/O - -<br />

ANSI DATE I/O I/O I/O I/O I/O - -<br />

TIMESTAMP (TS) I/O I/O I/O I/O I/O - -<br />

OCCI TIMESTAMP I/O I/O I/O I/O I/O - -<br />

TIMESTAMP WITH<br />

TIME ZONE (TSTZ)<br />

TIMESTAMP WITH<br />

LOCAL TIME ZONE<br />

(TSLTZ)<br />

INTERVAL YEAR TO<br />

MONTH<br />

Table 4–6 Data Conversions for LOBs<br />

INTERNAL DATATYPES<br />

EXTERNAL DATATYPES CLOB BLOB<br />

I/O I/O I/O I/O I/O - -<br />

I/O I/O I/O I/O I/O<br />

I/O - - - - I/O -<br />

NTERVAL<br />

DAY TO<br />

SECOND<br />

Datatypes 4-23

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!