8.Clob类型字段转String
程序员文章站
2022-06-18 19:51:12
...
public String clobToString(Clob clob) throws SQLException {
String reString = "";
Reader reader = clob.getCharacterStream();
BufferedReader br = new BufferedReader(reader);
String s = br.readLine();
StringBuffer sb = new StringBuffer();
while(s != null){
sb.append(s);
s = br.readLine();
}
reString = sb.toString();
return reString;
}
上一篇: QCY CC1A智能摄像头怎么样?QCY CC1A智能摄像头开箱测评
下一篇: 而你却不能