Convert timestamp to date in Oracle SQL

前端 未结 7 2160
花落未央
花落未央 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-06 00:00

    Format like this while selecting:

    to_char(systimestamp, 'DD-MON-YYYY')
    

    Eg:

    select to_char(systimestamp, 'DD-MON-YYYY') from dual;
    

提交回复
热议问题