随笔分类 -  常用mysql语句

摘要:1.匹配并更新渠道匹配状态 UPDATE rec_sourceidx a,rec_data b SET a.matched='Y' AND b.matched='Y' WHERE a.chnlcd=b.chnlcd AND a.chnldt=b.chnldt AND a.chnlsq=b.chnls 阅读全文
posted @ 2019-12-31 13:19 morganlin 阅读(397) 评论(0) 推荐(0)
摘要:1.导入渠道对账索引 insert into rec_sourceidx ( trandt,transq,chnlcd,chnldt,chnlsq,chnlst,tranam,matched ) select (#trandtidx#,#transqidx#,#chnlcdidx#,#chnldti 阅读全文
posted @ 2019-12-31 13:05 morganlin 阅读(560) 评论(0) 推荐(0)