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 />

closeStream()<br />

execute()<br />

Syntax<br />

void closeResultSet(ResultSet *resultSet);<br />

Parameters<br />

resultSet<br />

The resultset to be closed. The resultset should have been obtained by a call to the<br />

getResultSet method on this statement.<br />

Closes the stream specified by the parameter stream.<br />

Syntax<br />

void closeStream(Stream *stream);<br />

Parameters<br />

stream<br />

The stream to be closed.<br />

Executes a SQL statement that may return either a result set or an update count. The<br />

statement may have read-able streams which may have to be written, in which case<br />

the results of the execution may not be readily available. The returned value is one<br />

of the following:<br />

■ UNPREPARED<br />

■ PREPARED<br />

■ RESULT_SET_AVAILABLE<br />

■ UPDATE_COUNT_AVAILABLE<br />

■ NEEDS_STREAM_DATA<br />

■ STREAM_DATA_AVAILABLE<br />

If RESULT_SET_AVAILABLE is returned, the getResultSet() method must be<br />

called to get the result set.<br />

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