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
專注于為中小企業(yè)提供成都網(wǎng)站設(shè)計、成都做網(wǎng)站服務(wù),電腦端+手機端+微信端的三站合一,更高效的管理,為中小企業(yè)奉化免費做網(wǎng)站提供優(yōu)質(zhì)的服務(wù)。我們立足成都,凝聚了一批互聯(lián)網(wǎng)行業(yè)人才,有力地推動了1000+企業(yè)的穩(wěn)健成長,幫助中小企業(yè)通過網(wǎng)站建設(shè)實現(xiàn)規(guī)模擴充和轉(zhuǎn)變。
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_DATE
網(wǎng)站欄目:oracle任務(wù)手動轉(zhuǎn)歷史
網(wǎng)頁地址:http://weahome.cn/article/pihgoe.html