Oracle 存储过程 延迟执行 DBMS_LOCK.SLEEP(60);
时间:2017-09-01 14:58:40
收藏:0
阅读:660
- --测试代码:
- 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
原文:http://www.cnblogs.com/pejsidney/p/7463171.html
评论(0)