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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Internal Datatypes<br />

Note: There are more external datatypes than internal datatypes.<br />

In some cases, a single external datatype maps to a single internal<br />

datatype; in other cases, many external datatypes map to a single<br />

internal datatype. The many-to-one mapping provides you with<br />

added flexibility.<br />

See Also:<br />

■ External Datatypes on page 4-5<br />

Internal Datatypes<br />

The internal (built-in) datatypes provided by <strong>Oracle</strong> are listed in this section.<br />

Table 4–1 lists the <strong>Oracle</strong> internal datatypes and maximum internal length of each:<br />

Table 4–1 <strong>Oracle</strong> Internal Datatypes<br />

Internal Datatype Code Maximum Internal Length<br />

BFILE 114 4 gigabytes<br />

CHAR, NCHAR 96 2000 bytes<br />

DATE 12 7 bytes<br />

INTERVAL DAY TO SECOND REF 183 11 bytes<br />

INTERVAL YEAR TO MONTH REF 182 5 bytes<br />

LONG 8 2 gigabytes (2^31-1 bytes)<br />

LONG RAW 24 2 gigabytes (2^31-1 bytes)<br />

NUMBER 2 21 bytes<br />

RAW 23 2000 bytes<br />

REF 111<br />

REF BLOB 113 4 gigabytes<br />

REF CLOB, REF NCLOB 112 4 gigabytes<br />

ROWID 11 10 bytes<br />

TIMESTAMP 180 11 bytes<br />

TIMESTAMP WITH LOCAL TIME ZONE 231 7 bytes<br />

Datatypes 4-3

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

Saved successfully!

Ooh no, something went wrong!