9.2.2 Batch update functionality with the Statement class
The following notes apply to the batch update functionality with the Statement class.
-
Use the addBatch method to register multiple SQL statements.
-
Use the executeBatch method or the executeLargeBatch method to execute the registered SQL statements as a batch.
-
An array of the numbers of rows updated by the individual SQL statements is returned as the batch execution results.
-
If an error occurs during batch execution, the batch update functionality throws a BatchUpdateException.