Extract time part from TimeStamp column in ORACLE

前端 未结 7 1650
我寻月下人不归
我寻月下人不归 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条回答
  •  -上瘾入骨i
    2021-01-02 01:59

    This may help:

    Select EXTRACT(HOUR FROM (SYSDATE - trunc(sysdate)) DAY TO SECOND ) From dual;
    

提交回复
热议问题