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
          主站蜘蛛池模板: 灵寿县| 贡山| 永清县| 桐乡市| 山西省| 泾源县| 庆云县| 本溪| 星子县| 香格里拉县| 毕节市| 合作市| 塔城市| 航空| 吉木乃县| 四子王旗| 平果县| 万山特区| 平乐县| 南陵县| 新巴尔虎左旗| 夹江县| 蒲江县| 漳州市| 景东| 远安县| 临西县| 修文县| 凉城县| 临邑县| 玉龙| 太和县| 盐池县| 固阳县| 招远市| 威远县| 贵定县| 宁蒗| 英超| 昌吉市| 平罗县|