chenwu
修改tbl的market startTime endTime 默认更新 EC 修改tblmarket表的引用并加备注
This commit is contained in:
@@ -85,4 +85,46 @@ SET Pack_Code = if( Pack_Code REGEXP '^[0-9]',right(concat('000000000000',Pack_C
|
||||
;
|
||||
UPDATE dwd.dwd_gnd_ims_tblbrandtype
|
||||
SET PACK_COD = if( PACK_COD REGEXP '^[0-9]',right(concat('000000000000',PACK_COD),12),PACK_COD) --RIGHT(concat('0000000',PACK_COD),7)
|
||||
;
|
||||
;
|
||||
|
||||
-- COMMAND ----------
|
||||
|
||||
update DWD.dwd_gnd_tblmarket_bymonth
|
||||
set starttime = '200001'
|
||||
where starttime is null or starttime='' or starttime='All';
|
||||
|
||||
update DWD.dwd_gnd_tblmarket_bymonth
|
||||
set endtime = '299912'
|
||||
where endtime is null or endtime=''or endtime='All';
|
||||
|
||||
update DWD.dwd_gnd_ims_tblbrandratio
|
||||
set starttime = '200001'
|
||||
where starttime is null or starttime='' or starttime='All';
|
||||
|
||||
update DWD.dwd_gnd_ims_tblbrandratio
|
||||
set endtime = '299912'
|
||||
where endtime is null or endtime=''or endtime='All';
|
||||
|
||||
update DWD.dwd_gnd_retail_tblmarket_bymonth
|
||||
set starttime = '200001'
|
||||
where starttime is null or starttime='' or starttime='All';
|
||||
|
||||
update DWD.dwd_gnd_retail_tblmarket_bymonth
|
||||
set endtime = '299912'
|
||||
where endtime is null or endtime=''or endtime='All';
|
||||
|
||||
update DWD.dwd_gnd_ec_tblmarket_bymonth
|
||||
set starttime = '200001'
|
||||
where starttime is null or starttime='' or starttime='All';
|
||||
|
||||
update DWD.dwd_gnd_ec_tblmarket_bymonth
|
||||
set endtime = '299912'
|
||||
where endtime is null or endtime=''or endtime='All';
|
||||
|
||||
update DWD.dwd_gnd_dtp_tblmarket_bymonth
|
||||
set starttime = '200001'
|
||||
where starttime is null or starttime='' or starttime='All';
|
||||
|
||||
update DWD.dwd_gnd_dtp_tblmarket_bymonth
|
||||
set endtime = '299912'
|
||||
where endtime is null or endtime=''or endtime='All';
|
||||
|
||||
Reference in New Issue
Block a user