码迷,mamicode.com
首页 > 其他好文 > 详细

定时提醒

时间:2016-04-01 23:20:05      阅读:180      评论:0      收藏:0      [点我收藏+]

标签:


var job_num number;
begin
dbms_job.submit(:job_num,‘pro_tixing(sysdate,sysdate+30);‘,SYSDATE,‘TRUNC(SYSDATE + 1)‘);
end;
print job_num

--------------------------------------------------------------------------

begin
dbms_job.run(26);
end;
/

--------------------------------------------------------------------------
SELECT JOB, NEXT_DATE, NEXT_SEC, FAILURES, BROKEN FROM ALL_JOBS;

SELECT * FROM ALL_JOBS;

--------------------------------------------------------------------------

begin
dbms_job.remove(25);
end;
/

--------------------------------------------------------------------------

定时提醒

标签:

原文地址:http://www.cnblogs.com/mingjing/p/5346590.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!