posts - 82, comments - 269, trackbacks - 0, articles - 1
            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

          Oracle 時區轉換

          Posted on 2009-12-15 12:37 itspy 閱讀(480) 評論(0)  編輯  收藏 所屬分類: 小經驗
          select TRUNC(800000000 / 86400 +
                       EXTRACT(TIMEZONE_HOUR FROM SYSTIMESTAMP) / 24 +
                       TO_DATE('1970-01-01', 'yyyy-mm-dd')) from dual; 
           
           select new_time(sysdate,'PST','GMT') , sysdate  from dual;
           select new_time(sysdate,'PST','GMT')   from dual;
           


          Different ways to get the UTC time in Oracle and MSSQL
          http://weblogs.asp.net/vikram/archive/2008/05/14/different-ways-to-get-the-utc-time-in-oracle-and-mssql.aspx

          http://www.techonthenet.com/oracle/functions/new_time.php
          主站蜘蛛池模板: 崇左市| 天长市| 西青区| 诏安县| 文山县| 上饶县| 曲水县| 东明县| 麻城市| 泸西县| 江安县| 靖宇县| 会东县| 大理市| 水城县| 广宁县| 罗甸县| 黑水县| 长汀县| 深圳市| 阳朔县| 西和县| 罗平县| 洛阳市| 肇州县| 繁昌县| 逊克县| 金昌市| 崇明县| 玛纳斯县| 蓝山县| 孟村| 颍上县| 长寿区| 泽普县| 南乐县| 贡嘎县| 麻江县| 独山县| 米易县| 始兴县|