Statement.getUpdateCount

Statement.getUpdateCount

Interface Overview | Interface Members | This Package | All Packages

Syntax
public abstract int getUpdateCount() throws SQLException
Returns
the current result as an update count; -1 if it is a ResultSet or there are no more results
Description
getUpdateCount returns the current result as an update count; if the result is a ResultSet or there are no more results, -1 is returned. It should only be called once per result.

Exceptions
SQLException if a database-access error occurs.
See Also
execute