Try to convert Time to Sec in Oracle SQL

后端 未结 1 1901
挽巷
挽巷 2021-01-29 12:57

I am trying to convert Time to Sec but whatever I try I get error message. The following query is what I done so far

                SELECT
                    SU         


        
相关标签:
1条回答
  • 2021-01-29 13:41

    You refer TIME_TO_SEC function from MySQL documentation though question is marked with oracle tag. Use extract(second ...) or google oracle extract epoch equivalent, depending on what you want.

    Also the expressions EXTRACT(MONTH FROM uti.Date_) = '2020-01-21' and EXTRACT(YEAR... look suspicious, returned values definitely are not of form 'YYYY-MM-DD'.

    0 讨论(0)
提交回复
热议问题