aspose file tools
The moose likes JDBC and Relational Databases and the fly likes Database data retrieval in many steps? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Database data retrieval in many steps?" Watch "Database data retrieval in many steps?" New topic

Database data retrieval in many steps?

jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 580
I want to retrieve result set from database, If the result set is huge then I want to retrieve some part of total result set and retrieve the remaining in next sequence of retrievals.

My question here is

In my first database hit ,I retrieve the first set of the result,
In the second database hit, How it can refer the same result?? And retrieve the remaining part ?
Nickolas Case
Ranch Hand

Joined: Apr 26, 2008
Posts: 98
I think ResultSet fetchSize would be a good place to start.
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32299

Try searching for "paging" in this forum.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
subject: Database data retrieval in many steps?
jQuery in Action, 3rd edition