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.

ResultSet Class<br />

getString()<br />

getTimestamp()<br />

getUInt()<br />

Get the value of a column in the current row as a string. Returns the column value;<br />

if the value is SQL null, the result is an empty string.<br />

Syntax<br />

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

Parameters<br />

colIndex<br />

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

Get the value of a column in the current row as a Timestamp object. Returns the<br />

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

Syntax<br />

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

Parameters<br />

colIndex<br />

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

Get the value of a column in the current row as a <strong>C++</strong> int. Returns the column<br />

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

Syntax<br />

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

Parameters<br />

colIndex<br />

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

8-154 <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!