wood burning stoves*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with scrolling the data of resultset
 
Similar Threads
Navigate through ResultSet
Forward only ResultSet
Couldn't access bean:define variable in action class using request.getAttribute
isLast method for result set is not working
problem with isLast()!