addBatch(String sql)
Syntax:
void addBatch(String sql) throws SQLException
Description:
Adds the given SQL command to the current list of commands for this Statement
object. The commands in this list can be executed as a batch by calling the method executeBatch
.
Parameters:
sql
typically this is an SQL INSERT or UPDATE statement
Throws:
SQLException - if a database access error occurs or the statement has been closed
Reference:
For more information, reference JDBC documentation for: Statement.addBatch(String)