向数据库提交要运行的一批命令。如果所有命令都成功运行,则返回一个更新计数数组。

语法

public int[] executeBatch()

返回值

一个包含更新计数的整数数组。

异常

SQLServerException

java.sql.BatchUpdateException

备注

executeBatch 方法由 java.sql.Statement 接口中的 executeBatch 方法指定。

此方法覆盖在 SQLServerStatement 类中找到的 executeBatch 方法。

请参阅

SQLServerPreparedStatement 类
SQLServerPreparedStatement 成员