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 Relational Databases and the fly likes Result Set method that returns all rows Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Result Set method that returns all rows" Watch "Result Set method that returns all rows" New topic
Author

Result Set method that returns all rows

Shein Zeya
Greenhorn

Joined: Jun 04, 2008
Posts: 10
Hi all..

I would like to know one thing that is ; is there a method of Result Set that returns all rows.I searched in documentations but cannot find it. Please do help me .
Thanks a lot.

Regards: Shein

Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 32077
    
206

No. You'd have to write a loop to get all the data out of a result set. A cached result set will return a result set disconnected from the database, but it is still a result set.


[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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Result Set method that returns all rows