2012-04-20 56 views

回答

1

SYSTIMESTAMP已經是一個時間戳,所以你不想打電話給to_timestamp做之前的日期格式的畫面結束。如果你想添加12年3個月到當前時間戳

SQL> ed 
Wrote file afiedt.buf 

    1 declare 
    2 v_t timestamp; 
    3 begin 
    4 v_t := systimestamp +interval '12-3' year to month; 
    5 DBMS_OUTPUT.PUT_LINE(v_t); 
    6* end; 
SQL>/
20-JUL-24 03.27.28.966000 PM 

PL/SQL procedure successfully completed. 
+0

謝謝賈斯汀洞穴..... – 2012-04-20 19:56:23