`

从clob字段中取值

 
阅读更多
Clob clobtmp = (Clob)rs.getClob("content");
StringBuffer sb = new StringBuffer();
String str ="";
if (clobtmp != null){
Reader is = clobtmp.getCharacterStream();
BufferedReader br = new BufferedReader(is);
while ((str = br.readLine()) != null) {
sb.append(str)
.append("\r\n");
}
}
c.setContent(sb.toString());
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics