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
          主站蜘蛛池模板: 岢岚县| 望谟县| 呈贡县| 高唐县| 衡南县| 漠河县| 府谷县| 大理市| 新乐市| 深泽县| 石楼县| 南丰县| 延寿县| 栾川县| 临泉县| 土默特左旗| 巴楚县| 武山县| 吐鲁番市| 军事| 米林县| 延津县| 新密市| 滦平县| 隆安县| 黄浦区| 晋宁县| 南京市| 筠连县| 射阳县| 贡嘎县| 白山市| 茂名市| 恭城| 浦东新区| 淄博市| 石阡县| 吐鲁番市| 平山县| 齐齐哈尔市| 富顺县|