import oracle.sql.CLOB;
psmt.setString(5, data);
setClobInStatement(conn, psmt, 6, ClobData );
private void setClobInStatement(Connection conn, PreparedStatement ps, int order, String longText) throws SQLException {
try {
CLOB c = CLOB.createTemporary(conn, false, CLOB.DURATION_SESSION);
c.setString(1, longText);
ps.setClob(order, c);
} catch (Exception e) {
e.printStackTrace();
ps.close();
}
}
| cs |
댓글 없음:
댓글 쓰기