JDBC: complains about invalid sign but seems fine
问题 I have to use JDBC to write to a database (hibernate/ibatis is not an option) and my database is Oracle 11g. I create the following query: insert into user(user_id, username, age, creation_ts) values(seq_userid.NEXTVAL, 'Jack', 19,TO_TIMESTAMP('14/12/2010 15/09/46', 'DD/MM/RR HH24/MI/SS')); However my statetement.execeuteUpdate(above sql) . generates an invalid sign exception. But when I perform the query in squirrel it gets commited just fine. Does anyone know why this is happening? Edit: