wood burning stoves 2.0*
The moose likes JDBC and the fly likes Cannot update Clob to Oracle by using JDBC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Cannot update Clob to Oracle by using JDBC" Watch "Cannot update Clob to Oracle by using JDBC" New topic
Author

Cannot update Clob to Oracle by using JDBC

jammy chen
Greenhorn

Joined: Aug 24, 2009
Posts: 25
I used the following codes to update clob to oracle by using jdbc


after ran above codes, I checked "bbbbbbbbbbbbbbbbbbaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" was stored in the db, why? it should be "bbbbbbbbbbbbbbbbbb", right? As we can see the later string "bbbbbbbbbbbbbbbbbb" just appended. but I want it to be replaced.
I


Java tutorial
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19653
    
  18

Add this between flushing and closing the writer:


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cannot update Clob to Oracle by using JDBC
 
Similar Threads
Use two connections individually for a clob selection and updating statment.
How to update clob field in oracle
help: lock problem during Clob update
unable to update CLOB data using Commons DBCP connection.
How to update string to Oracle Clob