executeBatch 方法 (SQLServerPreparedStatement)

下載 JDBC 驅動程式

將命令批次提交到要執行的資料庫。 如果所有命令都成功執行,則傳回更新計數陣列。

語法

  
public int[] executeBatch()  

傳回值

包含更新計數的 int 陣列。

例外狀況

SQLServerException

java.sql.BatchUpdateException

備註

這個 executeBatch 方法是由 java.sql.Statement 介面中的 executeBatch 方法指定。

這個方法會覆寫 SQLServerStatement.executeBatch

另請參閱

SQLServerPreparedStatement 成員
SQLServerPreparedStatement 類別