Convert timestamp to date in Oracle SQL

前端 未结 7 2180
花落未央
花落未央 2020-12-05 23:17

How can we convert timestamp to date?

The table has a field, start_ts which is of the timestamp format:

\'05/13/2016 4:58:1         


        
7条回答
  •  孤街浪徒
    2020-12-05 23:57

    CAST(timestamp_expression AS DATE)
    

    For example, The query is : SELECT CAST(SYSTIMESTAMP AS DATE) FROM dual;

提交回复
热议问题