日期:2014-05-20 浏览次数:20811 次
BufferedReader reader = null;
PreparedStatement ps = conn.prepareStatement(sql);
System.out.println(sql);
rs = ps.executeQuery();
if (rs != null && rs.next()) {
Clob clob = rs.getClob("req_msg");// java.sql.Clob类型
reader = new BufferedReader(new InputStreamReader(clob
.getAsciiStream()));
String line = null;
StringBuffer req = new StringBuffer();
while ((line = reader.readLine()) != null) {
req.append(line);
}