This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes Making ResultSet  object scrollable 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 "Making ResultSet  object scrollable" Watch "Making ResultSet  object scrollable" New topic
Author

Making ResultSet object scrollable

sajeev varghese
Greenhorn

Joined: Jan 27, 2006
Posts: 14
I am using getColumns method of databasemetadata which returns resultset.
This resultset returns information about each columns as seperate rows.I want to iterate through these rows.
please note that I am not using any preparedStatement or createstatement methods.
Please tell me how to make this resultset scrollable.
Thanks in advance.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Here's a link to the JDBC tutorial:

http://java.sun.com/docs/books/tutorial/jdbc/

Notice how that page contains the words "scrollable result set", so that should help you to find the information.

By the way I don't keep that link anywhere, when I want to find it I type "jdbc tutorial" into my favourite search engine and it pops up as the first result. You can go a long way with that technique.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Making ResultSet object scrollable
 
Similar Threads
Moving the Cursor in ResultSets.....
Limiting ResultSet
Scrollable ResultSet and DB2 JDBC Driver
ResultSet Question
ResultSet is not scrollable problem - WAS 3.5 (Very Urgent please)