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
.
Note:This method cannot be called on a
PreparedStatement
or CallableStatement
.
sql | typically this is a SQL INSERT or
UPDATE statement |
SQLException | if a database access error occurs,
this method is called on a closed Statement , the
driver does not support batch updates, the method is called on a
PreparedStatement or CallableStatement |
executeBatch, DatabaseMetaData.supportsBatchUpdates
Diagram: Statement