共用方式為


executeBatch Method (SQLServerPreparedStatement)

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()

傳回值

An array of ints that contains the update counts.

例外狀況

SQLServerException

java.sql.BatchUpdateException

備註

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

This method overrides the executeBatch method that is found in the SQLServerStatement class.

另請參閱

參考

SQLServerPreparedStatement Class

概念

SQLServerPreparedStatement Methods
SQLServerPreparedStatement Members