-4
夥計們我試圖從java中的另一個表中從java中檢索日期,並試圖將其插入到其他表中,但它一直顯示 ---->java.sql.SQLDataException: ORA-01861: literal does not match format string
。SQL錯誤---文字不匹配格式
rs = stmt.executeQuery("select * from a_seq_mtx");
while(rs.next()) {
//Checking range of ----range_base to range_base+2--- for each rows
date_start = rs.getString(1);
//Storing date for each row which is to be checked
date_end = rs.getString(2);
stmt1.executeQuery("insert into a_pattern values('"+date_start+"','"+date_end+"'
請發佈您的代碼請 – jean 2015-02-24 12:39:38
也有問題的表的DDL,以及哪些數據從哪裏傳輸到哪裏。 – 2015-02-24 12:45:13
沒有其他信息:http://www.techonthenet.com/oracle/errors/ora01861.php – Albert 2015-02-24 12:51:50