long型

Reader reader = rs.getCharacterStream("b3");
          BufferedReader bufferedReader = new BufferedReader(reader);
          StringBuffer stringBuffer = new StringBuffer();
          String line;
          while ((line = bufferedReader.readLine()) != null) {
          stringBuffer.append(line);
          }
          bufferedReader.close();

clob型

Clob c = rs.getClob(1);
  StringBuffer sb = new StringBuffer();
  BufferedReader reader = new BufferedReader(new InputStreamReader(c.getAsciiStream()));
  while ((line = reader.readLine()) != null) {
   sb.append(line.hashCode());
  }
  reader.close();




Related posts

coded by nessus
分享:  DeliciousGReader鲜果豆瓣CSDN网摘
Trackback

no comment untill now

Add your comment now

无觅相关文章插件