Über setCharacterStream() funktioniert das prima:
Code:Statement stmt = con.prepareStatement( "INSERT INTO clob_table (id, clob_col) VALUES (?,?)"); stmt.setInt(1, 42); String clobContent = "hier ist der ganz lange CLOB..."; Reader r = new StringReader(clobContent); stmt.setCharacterStream(2, r, clobContent.length()); stmt.executeUpdate(); con.commit();



LinkBack URL
About LinkBacks
Zitieren

Lesezeichen