aspose file tools*
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 Spring in Action this week in the Spring 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: 18669
    
    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.
 
jQuery in Action, 2nd edition
 
subject: Making ResultSet object scrollable