ORA-01704: string literal too long
当字段 RAWDATA 的字符数超过 4000 个时,我收到错误消息。数据类型为 CLOB。我正在使用 java 1.4 和 oracle 10g。
stmt = conn.prepareStatement("INSERT INTO RAWDATA_EQUIFAX (REQ_ID, BUREAU_CODE, RAWDATA, RESP_TIME) VALUES (?, ?, ?, ?)");
stmt.setInt(1, RequestID);
stmt.setString(2, bureau_code);
stmt.setString(3, rawData);
stmt.setTimestamp(4, new Timestamp(date.getTime()));
stmt.executeUpdate();
conn.commit();