I have a string in java, but the datatype in database is Clob. How do i get a Clob from String?
clob.setString(position, string)
writes a String to a Clob object.
new javax.sql.rowset.serial.SerialClob(source.toCharArray())
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With