• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem with the resultset

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 1143
1
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
If you were a tree, what sort of tree would you be? This tiny ad is a poop beast.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic