- sql
- the SQL statement to execute.
- autoGeneratedKeys
- a flag indicating whether to make auto generated keys available for retrieval. This parameter must be one of Statement.NO_GENERATED_KEYS or Statement.RETURN_GENERATED_KEYS.
Documentation for this section has not yet been entered.
Type Reason Java.Sql.SQLException if an error occurs accessing the database.
Executes a supplied SQL statement. This may return multiple ResultSets. This method allows control of whether auto-generated Keys should be made available for retrieval, if the SQL statement is an INSERT statement.
Use the getResultSet or getUpdateCount methods to get the first result and getMoreResults to get any subsequent results.