This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
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 Elasticsearch in Action this week in the Big Data 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: 31571
    
185

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://kickstarter.com/rocket-mass-heater
 
subject: Result Set method that returns all rows