Oracle 存儲過程 延遲執行 DBMS_LOCK.SLEEP(60);


 
  1. --測試代碼:  
  2.   
  3. declare   
  4.   -- Local variables here  
  5.   i integer;  
  6. begin  
  7.   -- Test statements here  
  8.    dbms_output.put_line(to_char(sysdate,'yyyy-MM-dd HH24:MI:SS'));  
  9.    DBMS_LOCK.SLEEP(60);--休眠60秒  
  10.    dbms_output.put_line(to_char(sysdate,'yyyy-MM-dd HH24:MI:SS'));  
  11. end;  
  12.   
  13.   
  14. --輸出結果:  
  15.   
  16. 2012-08-27 16:25:49  
  17. 2012-08-27 16:26:49  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM