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.

External Datatypes<br />

LONG<br />

The external datatype LONG stores character strings longer than 4000 bytes and up<br />

to 2 gigabytes in a column of datatype LONG. Columns of this type are only used for<br />

storage and retrieval of long strings. They cannot be used in methods, expressions,<br />

or WHERE clauses. LONG column values are generally converted to and from<br />

character strings.<br />

LONG RAW<br />

The external datatype LONG RAW is similar to the external datatype RAW, except that<br />

it stores up to 2 gigabytes.<br />

LONG VARCHAR<br />

The external datatype LONG VARCHAR stores data from and into an <strong>Oracle</strong> LONG<br />

column. The first four bytes contain the length of the item. The maximum length of<br />

a LONG VARCHAR is 2 gigabytes.<br />

LONG VARRAW<br />

The external datatype LONG VARRAW store data from and into an <strong>Oracle</strong> LONG RAW<br />

column. The length is contained in the first four bytes. The maximum length is 2<br />

gigabytes.<br />

NCLOB<br />

The external datatype NCLOB is a national character version of a CLOB. It stores<br />

fixed-width, multibyte national character set character (NCHAR), or varying-width<br />

character set data. An NCLOB can store up to 4 gigabytes of character text data.<br />

NCLOBs have full transactional support. Changes made through OCCI participate<br />

fully in the transaction. NCLOB value manipulations can be committed or rolled<br />

back. You cannot save an NCLOB locator in a variable in one transaction and then<br />

use it in another transaction or session.<br />

You cannot create an object with NCLOB attributes, but you can specify NCLOB<br />

parameters in methods.<br />

NUMBER<br />

You should not need to use NUMBER as an external datatype. If you do use it, <strong>Oracle</strong><br />

returns numeric values in its internal 21-byte binary format and will expect this<br />

format on input. The following discussion is included for completeness only.<br />

Datatypes 4-13

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

Saved successfully!

Ooh no, something went wrong!