Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem in resultset

 
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: 21945
36
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.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!