您的位置:首页 > 数据库 > Oracle

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

2017-09-01 14:48 477 查看
--测试代码:

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: