File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with the resultset

 
kiran kumar
Greenhorn
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, see the bellow code . i am not able to execute updateString() method.



In the above statement iam getting some error like
readable resultset can not be updatable
i am using oracle 9i

please reply to the above problem

[edited to disable smilies and add code tags]
[ February 07, 2005: Message edited by: Jeanne Boyarsky ]
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sree,
Welcome to JavaRanch!

I'm just curious what you are trying to do here. Is there something significant about the fifth row? It tends to be dangerous to rely on the data returning in a specific order.

The problem might be due to using absolute(). Try the following and see if it still fails:



[This time I forgot to disable smilies!]
[ February 07, 2005: Message edited by: Jeanne Boyarsky ]
 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sree,
If you haven't already done so, please refer to the section entitled ResultSet Limitations in Oracle's JDBC User's Guide and Reference. Not all queries can produce updatable "ResultSet"s. As stated in the Oracle documentation, the Oracle JDBC driver will silently convert updatabale "ResultSet"s to read-only "ResultSet"s for such queries.

In your case, it looks like "select * from EMP" cannot produce an updatable "ResultSet".

By the way, the Oracle documentation also states that there may be problems in using "select *", and recommends using explicit column lists instead.

Perhaps you shoud [re?] read the Oracle documentation?

Good Luck,
Avi.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic