public abstract void addBatch (String sql) throws SQLException

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.

Parameters:
sql    typically this is a SQL INSERT or UPDATE statement

Exceptions:
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

See also:
executeBatch, DatabaseMetaData.supportsBatchUpdates

Since:  1.2