用preparestatement实现time的插入非常方便,不必像手动时用to_char进行处理
java.util.Date Dates = new java.util.Date(); java.sql.Timestamp time = new java.sql.Timestamp(Dates.getTime()); getJdbcTemplate().update(sql, new Object[] { "0", time, "0"});