溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

oracle任務(wù)手動轉(zhuǎn)歷史

發(fā)布時間:2020-08-03 12:45:50 來源:網(wǎng)絡(luò) 閱讀:149 作者:qvodnet 欄目:關(guān)系型數(shù)據(jù)庫

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

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<to_date('2019-09-1 00:42:03','yyyy-mm-dd hh34:mi:ss');
delete JG_INFO where OPER_DATE<to_date('2019-09-1 00:42:03','yyyy-mm-dd hh34:mi:ss')

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI