Extract time part from TimeStamp column in ORACLE

前端 未结 7 1727
我寻月下人不归
我寻月下人不归 2021-01-02 01:14

Currently I\'m using MyTimeStampField-TRUNC(MyTimeStampField) to extract the time part from a timestamp column in Oracle.

SELECT CURRENT_TIMEST         


        
7条回答
  •  误落风尘
    2021-01-02 01:58

    select TO_DATE(TO_CHAR(SYSDATE,'hh24:mi:ss'),'hh24:mi:ss') from dual
    

    This gives the timestamp for 1hour less than the actual.

提交回复
热议问题