I'm using a sql statement in my program.
stringBuffer sql=new StringBuffer();
sql.append("insert into customer (id,createddate) ");
sql.append("values (1,");
sql.append("'"+new Timestamp(System.currentTimeMillis())+"'");
String results=jdbcTemplate.update(sql.toString();
when i executed above command,i got this exception nested exception is java.sql.SQLException: ORA-01843: not a valid month
i should bind the current date ,how do i solve this issue.
Thanks.