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.

Statement Class<br />

getString()<br />

getTimestamp()<br />

getUInt()<br />

Parameters<br />

paramIndex<br />

The first parameter is 1, the second is 2, . . . .<br />

Get the value of a CHAR, VARCHAR, or LONGVARCHAR parameter as an string.<br />

Returns the parameter value; if the value is SQL null, the result is empty string.<br />

Syntax<br />

string getString(unsigned int paramIndex);<br />

Parameters<br />

paramIndex<br />

The first parameter is 1, the second is 2, . . . .<br />

Get the value of a SQL TIMESTAMP parameter as a Timestamp object. Returns the<br />

parameter value; if the value is SQL null, the result is null<br />

Syntax<br />

Timestamp getTimestamp(unsigned int paramIndex);<br />

Parameters<br />

paramIndex<br />

The first parameter is 1, the second is 2, . . . .<br />

Get the value of a BIGINT parameter as a <strong>C++</strong> unsigned int. Returns the parameter<br />

value; if the value is SQL null, the result is 0<br />

Syntax<br />

unsigned int getUInt(unsigned int paramIndex);<br />

8-184 <strong>Oracle</strong> <strong>C++</strong> <strong>Call</strong> <strong>Interface</strong> Programmer’s <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!