is used for inspecting multiple results produced by the execution of a
SQL statement.
Under some (uncommon) situations a single SQL statement may return
multiple result sets and/or update counts. Normally you can ignore
this unless you are (1) executing a stored procedure that you know may
return multiple results or (2) you are dynamically executing an
unknown SQL string. The methods
XMultipleResults::getMoreResults()
,
XMultipleResults::getResultSet()
and
XMultipleResults::getUpdateCount()
let you navigate through multiple results.
moves to a Statement's next result. It returns true if
this result is a ResultSet. This method also implicitly
closes any current ResultSet obtained with getResultSet.
moves to a Statement's next result. It returns true if
this result is a ResultSet. This method also implicitly
closes any current ResultSet obtained with getResultSet.
There are no more results when (!getMoreResults() &&
getUpdateCount() == -1).