• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem in resultset  RSS feed

 
BABUN GHOSh
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In java when we open a resultset object is it only forward only?

example
out.println(rs.getString("NAME"));

out.println(rs.getString("NAME"));

but second time data is not show on broswer.
why?
my backend data base is oracle10g express edition.
 
Amit Ghorpade
Bartender
Posts: 2856
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In java when we open a resultset object is it only forward only?

yes it is forward only.
if you want it scroll, then make a scrollable statement.

Hope this helps
 
Paul Clapham
Sheriff
Posts: 22212
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
However if both of those statements applied to the same row, then forward-only versus scrollable have nothing to do with your problem.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!