JOB定时跑插入语句
1、建插入数据的存储过程
create or replace procedure report_web as
V_START_DATE DATE;
V_END_DATE DATE;
begin
V_START_DATE := TRUNC(SYSDATE) - 1;
V_END_DATE := TRUNC(SYSDATE);
begin
insert into [email protected]
select * from report_web_doctor a
where a.last_update_dtime >= V_START_DATE
and a.last_update_dtime <= V_END_DATE;
commit;
insert into [email protected]
select * from report_web_info b
where b.last_update_dtime >= V_START_DATE
and b.last_update_dtime <= V_END_DATE;
commit;
end;
end;
2、可视化建JOB
时间: 2024-10-11 07:29:35