- 最后登录
- 2018-11-1
- 在线时间
- 377 小时
- 威望
- 29
- 金钱
- 6866
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 891
- 精华
- 4
- 积分
- 29
- UID
- 1
|
2#
发表于 2012-12-3 16:10:19
FYI
- SQL> create table ttime (t1 timestamp);
- Table created.
- SQL> exec dbms_job.submit(:v_job,what=>'begin insert into ttime values(systimestamp); end;',next_date=>SYSDATE,INTERVAL=>'sysdate+1/86400');
- SQL> select job from dba_jobs;
- JOB
- ----------
- 1
-
-
- set serveroutput on ;
- declare
- job_body varchar2(32767);
- begin
- dbms_job.user_export(1,job_body);
- dbms_output.put_line(job_body);
- end;
- /
-
-
- dbms_job.isubmit(job=>1,what=>'begin insert into ttime values(systimestamp); end;',next_date=>to_date('2012-12-03:08:03:52','YYYY-MM-DD:HH24:MI:SS'),interval=>'sysdate+1/86400',no_parse=>TRUE);
复制代码 |
|