在PL/SQL中的what值中直接写入存储过程的名称+“分号”;

begin
  sys.dbms_job.submit(job => :job,
                      what => 'del_ky_items;',
                      next_date => to_date('24-06-2015 16:30:00', 'dd-mm-yyyy hh24:mi:ss'),
                      interval => 'trunc(sysdate,''mi'')+1/24');
  commit;
end;
/

如果有参数,使用两个单引号把字符串引起来;

都是不需要call语句的;

begin
  sys.dbms_job.submit(job => :job,
                      what => 'del_ky_items(1,''a'',sysdate);',
                      next_date => to_date('24-06-2015 16:30:00', 'dd-mm-yyyy hh24:mi:ss'),
                      interval => 'trunc(sysdate,''mi'')+1/24');
  commit;
end;
/

 

相关文章:

  • 2021-09-08
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2021-09-19
  • 2021-09-02
  • 2021-06-14
  • 2021-11-30
猜你喜欢
  • 2022-12-23
  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
  • 2021-09-19
相关资源
相似解决方案