zoukankan      html  css  js  c++  java
  • oracle extract

    select extract(year from systimestamp) year  
          ,extract(month from systimestamp) month  
          ,extract(day from systimestamp) day  
          ,extract(minute from systimestamp) minute  
          ,extract(second from systimestamp) second  
          ,extract(timezone_hour from systimestamp) th  
          ,extract(timezone_minute from systimestamp) tm  
          ,extract(timezone_region from systimestamp) tr  
          ,extract(timezone_abbr from systimestamp) ta  
    from dual
     

    YEAR MONTH DAY MINUTE SECOND TH TM TR TA
    ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------------------------------------------------------------- ----------
    2017 12 21 37 49.945099 8 0 UNKNOWN UNK

  • 相关阅读:
    文件上传案例_Socket_测试
    Linux的小整理(入门)
    full stack 第一天
    基础考题 试题
    shell语法
    网络管理
    图像类
    定时储存
    网络管理
    磁盘管理
  • 原文地址:https://www.cnblogs.com/wolil/p/8080866.html
Copyright © 2011-2022 走看看