27,579
社区成员
发帖
与我相关
我的任务
分享
insert into db_0003.dbo.MF_IJ
select a.*
from
db_0002.dbo.MF_IJ a, db_0003.dbo.MF_IJ b
where
b.ij_no <> a.ij_no
and a.IJ_NO like '%WO%'
OR a.BIL_TYPE='01'
OR a.BIL_TYPE='02'
OR a.BIL_TYPE='03'
OR a.BIL_TYPE='04'
OR a.BIL_TYPE='05' --这里改一下
insert into db_0003.dbo.MF_IJ
select a.*
from
db_0002.dbo.MF_IJ a, db_0003.dbo.MF_IJ b
where
b.ij_no <> a.ij_no
and a.IJ_NO like '%WO%'
OR a.BIL_TYPE='01'
OR a.BIL_TYPE='02'
OR a.BIL_TYPE='03'
OR a.BIL_TYPE='04'
OR a.MF_IJ.BIL_TYPE='05'