【应收账款】切换新数据库
DELETE FROM YSDJ
DELETE FROM XDMX
DELETE FROM DZMX
DELETE FROM DZCY
DELETE FROM FPMX
DELETE FROM SKDMX
DELETE FROM SKMX
DELETE FROM JEMX
DELETE FROM LSFP
DELETE FROM LSTABLE
DELETE FROM HZMX
insert into yszk2..ysdj(xsdh,dwid,jzrq,ysje,qrbz,dzbz,drrq,beizhu)
select xsdh,dwid,jzrq,ysje,qrbz,dzbz,drrq,beizhu from ysdj where dzbz=0 and qrbz!=2
insert into yszk2..ysdj(xsdh,dwid,jzrq,ysje,qrbz,dzbz,drrq,beizhu)
select xsdh,dwid,jzrq,ysje,qrbz,‘1‘,drrq,beizhu from ysdj where dzbz=0 and qrbz=2
insert into yszk2..ysdj(xsdh,dwid,jzrq,ysje,qrbz,dzbz,drrq,beizhu)
select xsdh,dwid,jzrq,ysje,qrbz,dzbz,drrq,beizhu from ysdj where dzbz=1
insert into yszk2..ysdj(xsdh,dwid,jzrq,ysje,qrbz,dzbz,drrq,beizhu)
select xdh,dwid,jzrq,ysje,qrbz,dzbz,qrrq,beizhu from xdmx where dzbz=1 and qrbz!=2
insert into yszk2..fpmx(dzdh,dwid,zs,fplx,beizhu,fptt,fphm,fpje,skbz)
select dzdh,dwid,zs,fplx,kpdw,fptt,fphm,fpje,skbz from fpmx where skbz=0
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。