Freigeben über


executeBatch Method (SQLServerStatement)

Submits a batch of commands to the database to be run. If all commands run successfully, returns an array of update counts.

public int[] executeBatch()

Rückgabewert

An array of ints that contain the update counts.

Ausnahmen

SQLServerException

java.sql.BatchUpdateException

Hinweise

This executeBatch method is specified by the executeBatch method in the java.sql.Statement interface.

After submitting commands to the database, this method clears any command in the batch.

Siehe auch

Referenz

SQLServerStatement Class

Konzepte

SQLServerStatement Methods
SQLServerStatement Members