共用方式為


getUpdateCount Method (SQLServerStatement)

Retrieves the current result as an update count.

public final int getUpdateCount()

傳回值

An int that contains the update count. If the returned result is a result set object or there are no more results, -1 is returned.

例外狀況

SQLServerException

備註

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

另請參閱

參考

SQLServerStatement Class

概念

SQLServerStatement Methods
SQLServerStatement Members