大橙子网站建设,新征程启航

为企业提供网站建设、域名注册、服务器等服务

oracle任务手动转历史

select to_char( rwfpsj,'yyyy-mm-dd'),rwzt,count(*) from out_sale_task_d0906 t group by rwzt ,to_char( rwfpsj,'yyyy-mm-dd'),rwzt

专注于为中小企业提供成都网站设计、成都做网站服务,电脑端+手机端+微信端的三站合一,更高效的管理,为中小企业奉化免费做网站提供优质的服务。我们立足成都,凝聚了一批互联网行业人才,有力地推动了1000+企业的稳健成长,帮助中小企业通过网站建设实现规模扩充和转变。

drop table out_sale_task_d0906
create table out_sale_task_d0906 as
select * from out_sale_task_d t where rwzt='9' and to_char( wfhsqsj,'yyyy-mm-dd')<'2019-09-03'

SELECT * FROM out_sale_task_d AS OF Timestamp(SYSDATE-2/1440) where djbh in (select djbh from out_sale_task_d0906);

insert into out_sale_task_d_hty
select * from out_sale_task_d t where djbh in (select djbh from out_sale_task_d0906);

insert into out_sale_task_m_hty
select * from out_sale_task_m t where djbh in (select djbh from out_sale_task_d0906);

delete out_sale_task_d t where djbh in (select djbh from out_sale_task_d0906);
delete out_sale_task_m t where djbh in (select djbh from out_sale_task_d0906);

insert into out_sale_billing_m_hty
select from out_sale_billing_m t where djbh in (select djbh from out_sale_task_d0906);
insert into out_sale_billing_d_hty
select
from out_sale_billing_d t where djbh in (select djbh from out_sale_task_d0906);

delete out_sale_billing_d where djbh in (select djbh from out_sale_task_d0906);
delete out_sale_billing_m where djbh in (select djbh from out_sale_task_d0906);

insert into out_sale_review_m_hty
select from out_sale_review_m t where djbh in (select djbh from out_sale_task_d0906);
insert into out_sale_review_d_hty
select
from out_sale_review_d t where djbh in (select djbh from out_sale_task_d0906);

delete out_sale_review_d where djbh in (select djbh from out_sale_task_d0906);
delete out_sale_review_m where djbh in (select djbh from out_sale_task_d0906);

select min(OPER_DATE),max(OPER_DATE),count() from Jg_Info
insert into Jg_Info_Hty
select
from JG_INFO where OPER_DATEdelete JG_INFO where OPER_DATE
当前文章:oracle任务手动转历史
标题来源:http://dzwzjz.com/article/pihgoe.html

在线咨询
服务热线
服务热线:028-86922220
TOP