用jdbc在往orcal数据库插入时间的时候,要求的时间不符合,需要使用到to_date 例如:String sql = "insert into table(列名,时间) values(?,,to_date(? ,'yyyy-mm-dd hh24:mi:ss'))";