日期:2014-05-16 浏览次数:20925 次
create or replace procedure abssf as
begin
INSERT INTO sc_jc_rm
(sc_jc_rm.bl_id,
sc_jc_rm.bl_name,
sc_jc_rm.fl_id,
sc_jc_rm.rm_id,
sc_jc_rm.rm_name,
sc_jc_rm.area_rm,
sc_jc_rm.rm_cat,
sc_jc_rm.rm_type,
sc_jc_rm.dv_id)
SELECT rm.bl_id,
bl.name,
rm.fl_id,
rm.rm_id,
rm.name AS abc,
bl.area_rm,
rm.rm_cat,
rm.rm_type,
rm.dv_id
FROM rm, bl
WHERE rm.bl_id = bl.bl_id;
end;
declare
job1 number ;
begin
dbms_job.submit(job1, 'abssf;', sysdate, 'sysdate+1/86400');
end;
begin
dbms_job.run(:job1);
end;
begin
dbms_job.remove(85);
end;
create or replace procedure abssf as举个简单例子,测试过 没问题,不会是代码问题, 你查不到数据,你还是找找你数据的原因吧
begin
INSERT INTO aa(id, flag) SELECT 1,2 from dual ;
commit;
end;
/
declare
job1 number;
begin
dbms_job.submit(job1, 'abssf;', sysdate, 'sysdate+1/86400');
commit;
end;