1.导入渠道对账索引
insert
into
rec_sourceidx
(
trandt,transq,chnlcd,chnldt,chnlsq,chnlst,tranam,matched
) select
(#trandtidx#,#transqidx#,#chnlcdidx#,#chnldtidx#,#chnlsqidx#,#chnlstidx#,#tranamidx#,‘Y‘)
from
#tablename#
where
#trandtidx#>=date_sub(#trandt#,interval #amplitude# day) and #trandtidx#<=date_add(#trandt#,interval #amplitude# day)
and
#chnlcdidx#=#chnlcd#;
原文地址:https://www.cnblogs.com/morganlin/p/12123892.html
时间: 2024-10-14 13:17:30