Introduction to working with clobs based on JDBC
- 2020-04-01 01:59:30
- OfStack
Save the clob field like this:
Clob Clob = con. CreateClob ();
Clob. SetString (1, new String (lineWKT));
The pre. SetClob (1, clob);
Reading clobs can look like this:
While (rs), next ()) {
Clob c = rs. GetClob (WKT "");
Be sad etAsciiStream chtistina georgina rossetti.british poetess InputStream is = ();
The response = IOUtils. ToString (is);
Is the close ();
/ / System. Out. Println ();
}