aspose file tools*
The moose likes JDBC and the fly likes problem with scrolling the data of resultset Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "problem with scrolling the data of resultset" Watch "problem with scrolling the data of resultset" New topic
Author

problem with scrolling the data of resultset

khurram mirza
Greenhorn

Joined: Jun 10, 2001
Posts: 25
i fetch record from database in resultset object.i've to go to last record,so when i use resultset.last() it throws SQL exception saying resultset is TYPE_FORWARD_ONLY.i tried to change this attribute using setFetchDirection(ResultSet.Unknown_Direction) but same exception appears.please help me how can i directly get to last record.
khurram mirza
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
In your createStatement() method, did you specify that you would like to scroll in both directions? Also, does your JDBC driver even support it?
Bosun


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
 
 
subject: problem with scrolling the data of resultset