我是这么连接的select DZInfo.dbo.Brand.*,QRInfo.dbo.Brand.* from DZInfo.dbo.Brand,QRInfo.dbo.Brand
可是它报这个错
FROM 子句中的对象 "QRInfo.dbo.Brand" 和 "DZInfo.dbo.Brand" 具有相同的表现名称。请使用相关名称来区分它们。

解决方案 »

  1.   

    select DZInfo.dbo.Brand.* from DZInfo.dbo.Brand union all 
    select QRInfo.dbo.Brand.* from QRInfo.dbo.Brand
      

  2.   

    select * from DZInfo.dbo.Brand union all
    select * from QRInfo.dbo.Brand
      

  3.   

    这么写呢
    select a.*,b.* from DZInfo.dbo.Brand  a,QRInfo.dbo.Brand bup....
      

  4.   

    联接查询的时候,结果集所有的列名不能重复。
    select tb1.id as id1 , tb2.id as id2  
    这样重新指定
      

  5.   

    select a.*,b.* from table1 as a,table as b where a.id = b.id