【发布时间】:2013-04-24 12:00:57
【问题描述】:
我在 java 中遇到此 sql 查询的以下异常。
statement2.executeUpdate("INSERT INTO visit_header "
+ "VALUES ('"+visitnumber+"','"+date+"','"+cookie+"','"+ip+"','"+duration+"','"+pageref
+"','"+startpagename+"','"+endpagename+"','"+pgvw+"','"+starttime+"','"+endtime+"','"
+country+"','"+state+"','"+city+"','"+browser+"','"+os+"','"+device+"')");
例外是:
java.sql.SQLException: ORA-01861: literal does not match format string.
我没有找到错误的地方。
谢谢。
【问题讨论】:
-
这个对你没有帮助?? stackoverflow.com/questions/10766034/…