File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC 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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Database data retrieval in many steps?" Watch "Database data retrieval in many steps?" New topic
Author

Database data retrieval in many steps?

jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30130
    
150

Try searching for "paging" in this forum.


[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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Database data retrieval in many steps?
 
Similar Threads
Performance issue if I do not retrieve the rest of result set
ResultSet Cursor
SQL SELECT statement with strings?
Does a servlet continue processing after I hit Stop?
How can i group certain columns in a ResultSet