日期:2014-05-16 浏览次数:20442 次
create or replace procedure insertTest is begin execute immediate 'truncate table testone';--插入前,清空表 --execute immediate 'truncate table hz_licenselesscar'; insert into testone value select * from view_test;--从view_test视图取数据,然后插入到表testone commit; end;
begin sys.dbms_job.submit(job => :job, what => 'inserttest;', next_date => to_date('28-10-2011 13:14:00', 'dd-mm-yyyy hh24:mi:ss'), interval => 'TRUNC(sysdate,''mi'') + 1 / (24*60)');--每分钟执行作业 commit; end;