Setting parameter for datetime in SQL Stored Procedure
843853Aug 15 2001 — edited Aug 16 2001I have a stored procedure with datetime parameter. But when I use CallableStatement to set parameter, I can only find setTimestamp. In fact, I can execute the Stored Procedure successfully, but I find the value in the result table is stored without 'seconds'.
For example:
passed value: "2001-8-15 09:12:45.000"
stored value: "2001-8-15 09:12:00" (datetime)
What happened? Hope someone may help!