Oracle gets the 0:00 time of the day

 

SELECT To_char(Trunc(SYSDATE), 'yyyy/mm/dd hh24:mi:ss') FROM dual;

 

SELECT To_date(To_char(Trunc(SYSDATE), 'yyyy/mm/dd hh24:mi:ss'), 'yyyy/mm/dd hh24:mi:ss') FROM dual

 

 

The first sentence is varchar type, no matter which database platform or tool platform, you can get the result with 00:00:00 behind.

The second sentence gets the Date type

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326920953&siteId=291194637