标签:数据修正
--对采购为1的明细屏蔽update jh_rkhz set djbh=replace(djbh,‘JHAY‘,‘JHYA‘) where djbh in (‘JHCYMA00005703‘,‘JHAYMA00037099‘)
update jh_rkhz set djbh=replace(djbh,‘JHCY‘,‘JHYC‘) where djbh in (‘JHCYMA00005703‘,‘JHAYMA00037099‘)
--对调拨数据屏蔽
update spls_rk set spid=replace(spid,‘SPH‘,‘SPA‘) where djbh in (‘CDBYMA00056070‘)
update spls_ck set spid=replace(spid,‘SPH‘,‘SPA‘) where djbh in (‘CDBYMA00056070‘)
--一键恢复所有数据
update spls_rk set spid=replace(spid,‘SPA‘,‘SPH‘) where spid not like ‘sph%‘
update spls_ck set spid=replace(spid,‘SPA‘,‘SPH‘) where spid not like ‘sph%‘
update jh_rkmx set spid=replace(spid,‘SPA‘,‘SPH‘) where spid not like ‘sph%‘
update pf_ckmx set spid=replace(spid,‘SPA‘,‘SPH‘) where spid not like ‘sph%‘
update jh_rkhz set djbh=replace(djbh,‘JHYA‘,‘JHAY‘) where djbh in (‘JHCYMA00005703‘,‘JHYAMA00037099‘)
update jh_rkhz set djbh=replace(djbh,‘JHYC‘,‘JHCY‘) where djbh in (‘JHYCMA00005703‘,‘JHAYMA00037099‘)
标签:数据修正
原文地址:http://blog.51cto.com/bks2015/2084504