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

来源:互联网 发布:怎么查看电脑的端口号 编辑:程序博客网 时间:2024/05/29 18:15
--测试代码: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:492012-08-27 16:26:49