共用方式為


addBatch Method (java.lang.String)

Adds the given SQL command to the current list of commands for this SQLServerPreparedStatement object.

public void addBatch(java.lang.String sql)

參數

sql

A String that contains an SQL statement.

例外狀況

SQLServerException

備註

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

Calling this method will result in an exception since the SQL statement for the SQLServerPreparedStatement object is specified when the object is created.

另請參閱

參考

SQLServerPreparedStatement Class

概念

addBatch Method (SQLServerPreparedStatement)
SQLServerPreparedStatement Methods
SQLServerPreparedStatement Members