Clob aa = rs.getClob("col");

解决方案 »

  1.   

    import oracle.sql.CLOB;
    import oracle.jdbc.OracleResultSet;      CLOB clob=((OracleResultSet)rs).getCLOB("col");
          long length = clob.length ();
          char ac[] = new char[200];
          int i=0;
          StringBuffer strPp_content =new StringBuffer();
          if (length>0){
            Reader char_stream = clob.getCharacterStream();
            while((i = char_stream.read(ac, 0, 200)) != -1) {
              strPp_content.append(ac, 0, i);
            }
          }