I have a QUERY
column of type CLOB
in database.
I am reading it in my program as:
SqlRowSet myRowSet = this.jdbcTemplate.queryForRowSet(this.sqlQuery);
while(myRowSet.next()){
String currentClobString = myRowSet.getString("QUERY")
System.out.println(currentClobString);
}
But this is giving the below output:
javax.sql.rowset.serial.SerialClob@7cfe7cfe
How can I correct this?
Thanks for reading!