Friday, June 11, 2010

ResultSet Max Rows

The setMaxRows method of the ResultSet specifies how many rows a ResultSet can contain at a time. If there are 1000 eligible records in DB and setMaxRows has a value 100, so only 100 records would be loaded in ResultSet.
This can be particularly useful when we wish to limit the number of rows from DB.

No comments: