日期:2014-05-17 浏览次数:20578 次
alter view [dbo].[ord_shopbestgoodsdoc_v]
as
select os.descri,os.OperatorsCategory,*,'URP32' as Source from DB01.dbo.ord_shopbestgoodsdoc a LEFT JOIN oSDOrg os ON a.sdorgid=os.SDOrgID
union
select os.descri,os.OperatorsCategory,*,'URP32' as Source from DB02.dbo.ord_shopbestgoodsdoc a LEFT JOIN oSDOrg os ON a.sdorgid=os.SDOrgID
LEFT JOIN oSDOrg os ON a.sdorgid=os.SDOrgID出现报错:
alter view [dbo].[ord_shopbestgoodsdoc_v] as select os.descri,os.OperatorsCategory,a.*,'URP32' as Source from DB01.dbo.ord_shopbestgoodsdoc a LEFT JOIN oSDOrg os ON a.sdorgid=os.SDOrgID union select os.descri,os.OperatorsCategory,a.*,'URP32' as Source from DB02.dbo.ord_shopbestgoodsdoc a LEFT JOIN oSDOrg os ON a.sdorgid=os.SDOrgID