oracle毫秒轉時間,oracle毫秒轉

來源:互聯網
上載者:User

oracle毫秒轉時間,oracle毫秒轉

今天遇到資料庫存的日期文字是這種造型:1.3377024E12,本想用程式後台轉換過後再展示在前台。仔細想了一下,改資料庫來得更快,就搜尋資料:

實現如下:

SELECT TO_CHAR(to_number(1.3377024E12) / (1000 * 60 * 60 * 24) +            TO_DATE('1970-01-01 08:00:00', 'YYYY-MM-DD HH:MI:SS'), 'YYYY-MM-DD HH:MI:SS') finishcasedate FROM DUAL;


相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.