SQL 日期的應用 (轉) @ oracle園地 :: 痞客邦 PIXNET ::
SQL> select extract(month from sysdate) "This Month" from dual; This Month ----- 6 SQL> select extract(year from add_months(sysdate,36)) " Years" from dual; Years ----- 2008 10。 localtimestamp()返回會話中的日期和時間 SQL> select LOCALTIMESTAMP ......