尝试在 Java 代码中将字符串转换为 Clob 时遇到问题。我正在使用 java 1.4 和 oracle 10g。
stmt = conn.prepareStatement("INSERT INTO RAWDATA_EQUIFAX (REQ_ID, BUREAU_CODE, RAWDATA, RESP_TIME) VALUES (?, ?, ?, ?)");
stmt.setClob(3, rawData); //rawData is String in java
我得到的错误是:
The method setClob(int, Clob) in the type PreparedStatement is not applicable for the arguments (int, String)