public static String parse(oracle.sql.CLOB clob) {
String content = "";
try {
java.io.Reader is = clob.getCharacterStream();
java.io.BufferedReader br = new java.io.BufferedReader(is);
String s = null;
while ((s = br.readLine()) != null) {
content += s;
}
} catch (Exception e) {
}
return content;
}
String content = "";
try {
java.io.Reader is = clob.getCharacterStream();
java.io.BufferedReader br = new java.io.BufferedReader(is);
String s = null;
while ((s = br.readLine()) != null) {
content += s;
}
} catch (Exception e) {
}
return content;
}
显示时保证不乱码这两者缺一不可
直接insert into a(x)values('"&string&"')就可以的