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

原文地址:https://www.cnblogs.com/wolil/p/8080866.html