Convert timestamp to date in Oracle SQL

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

    You can try the simple one

    select to_date('2020-07-08T15:30:42Z','yyyy-mm-dd"T"hh24:mi:ss"Z"') from dual;
    
    0 讨论(0)
提交回复
热议问题