当前位置:Gxlcms > 数据库问题 > Oracle 存储过程 延迟执行 DBMS_LOCK.SLEEP(60);

Oracle 存储过程 延迟执行 DBMS_LOCK.SLEEP(60);

时间:2021-07-01 10:21:17 帮助过:10人阅读

  •   
  • declare   
  •   -- Local variables here  
  •   i integer;  
  • begin  
  •   -- Test statements here  
  •    dbms_output.put_line(to_char(sysdate,‘yyyy-MM-dd HH24:MI:SS‘));  
  •    DBMS_LOCK.SLEEP(60);--休眠60秒  
  •    dbms_output.put_line(to_char(sysdate,‘yyyy-MM-dd HH24:MI:SS‘));  
  • end;  
  •   
  •   
  • --输出结果:  
  •   
  • 2012-08-27 16:25:49  
  • 2012-08-27 16:26:49  
  • Oracle 存储过程 延迟执行 DBMS_LOCK.SLEEP(60);

    标签:sda   data   output   存储   acl   int   art   span   highlight   

    人气教程排行