JAVA ORACLE stored procedure call time type parameters no date

It is because cs.setDate () parameter passed to the database returns only the date portion.
If the code can use the following:
cs.setTimestamp(3, new java.sql.Timestamp(dKssj.getTime()));
cs.setTimestamp(4, new java.sql.Timestamp(dJssj.getTime()));

cs.setTimestamp () The date and time parts are passed to the database.

Guess you like

Origin www.cnblogs.com/liwei1994/p/11493272.html