zoukankan      html  css  js  c++  java
  • PL/SQL的JOB的创建

    declare Insert_MobileAPP number;--Insert_MobileAPP为JOB的名字

    begin

    sys.dbms_job.submit(:Insert_MobileAPP,'MobileAPPs;',sysdate,'trunc(sysdate+1)+1/24');--MobileAPPs是存储过程的名字,
                                                                                                                                 --sysdate为第一次执行时间
                                                                                                                             --'trunc(sysdate+1)+1/24'每天的执行时间                                               
    commit;

    end;

    删除JOB

    select * from all_jobs;
    看一下要删除的job号
    exec dbms_job.remove(jobno);

  • 相关阅读:
    Codeforces 1515 H. Phoenix and Bits 题解
    Codeforces 1511 F. Chainword 题解
    Codeforces 1369F. BareLee 题解
    莫队学习笔记
    圆方树学习笔记
    虚树学习笔记
    NOIP2020退役记
    CSP-S2 2021 场外
    我。
    WC2021 游记
  • 原文地址:https://www.cnblogs.com/lmfeng/p/2163874.html
Copyright © 2011-2022 走看看