您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

Oracle的定时器使用示例

2024/6/9 1:37:03发布21次查看
oracle的job每分钟执行一次存储过程。 无 --oracle定时job--数据库执行此脚本时时,请确保只执行一次,否则会引发错误!declare job_id number; begin dbms_job.submit(job_id,'reinsure_writeback_opdate;',sysdate,'sysdate+1/(24*60)'); commit; end;/--存
oracle的job每分钟执行一次存储过程。 --oracle定时job--数据库执行此脚本时时,请确保只执行一次,否则会引发错误!declare job_id number; begin dbms_job.submit(job_id,'reinsure_writeback_opdate;',sysdate,'sysdate+1/(24*60)'); commit; end;/--存储过程create or replace procedure reinsure_writeback_opdate asbegin update web_ri_sett_main b set b.c_rp_flag = (select case when c.opdate is null then '0' else '1' end from web_fin_write_back c where c.batchno = b.c_sett_no) where exists (select 1 from web_fin_write_back c where c.batchno = b.c_sett_no); commit;end reinsure_writeback_opdate;
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product