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: 1506
posted
0
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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: problem with scrolling the data of resultset