Java: How to insert CLOB into oracle database

前端 未结 10 1252
情话喂你
情话喂你 2020-12-03 03:32

I need to write an XML file content into oracle database where the column is of CLOB datatype. How will I do that?

10条回答
  •  借酒劲吻你
    2020-12-03 03:54

    I had similar issue. Changed one of my table column from varchar2 to CLOB. I didn't needed to change any java code. I kept it as setString(..) only so no need to change set method as setClob() etch if you are using following versions ATLEAST of Oracle and jdbc driver.

    I tried in In Oracle 11g and driver ojdbc6-11.2.0.4.jar

提交回复
热议问题