8.4.2 addBatch()
- Organization of this subsection
(1) Function
This method adds the current parameter set to this PreparedStatement object's batch. You can add a maximum of 2,147,483,647 parameter sets.
(2) Format
public synchronized void addBatch() throws SQLException
(3) Arguments
None.
(4) Return value
None.
(5) Exceptions
The JDBC driver throws an SQLException in the following cases:
-
The PreparedStatement object is closed.
-
The Connection object that created this PreparedStatement object is closed.
-
No value is set for at least one dynamic parameter.
-
More than 2,147,483,647 items have been registered in the batch.