public abstract void setMaxRows (int max) throws SQLException

Sets the limit for the maximum number of rows that any ResultSet object generated by this Statement object can contain to the given number. If the limit is exceeded, the excess rows are silently dropped.

Parameters:
max    the new max rows limit; zero means there is no limit

Exceptions:
SQLException    if a database access error occurs, this method is called on a closed Statement or the condition max >= 0 is not satisfied

See also:
getMaxRows