共用方式為


getMaxRows Method (SQLServerStatement)

Retrieves the maximum number of rows that a SQLServerResultSet object that is produced by this SQLServerStatement object can contain.

public final int getMaxRows()

傳回值

An int that indicates the maximum number of rows, or 0 if there is no limit.

例外狀況

SQLServerException

備註

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

This getMaxRows method always returns 0 for dynamic scrollable cursors.

另請參閱

參考

SQLServerStatement Class

概念

SQLServerStatement Methods
SQLServerStatement Members