我有这个表:LEFT JOIN无法绑定
WS | Cat | Prod | CS | Dis| UserWS | MarA | ModA | MarU | BCIU
我要加入他们为了得到即使有些是空的所有行的关系,我想这一点:
Select *
FROM WS
Left join MarU on MarU.Code=WS.used_brand
Left join Prod p on p.MarA=Cat.OID
Left join CS on WS.CS =CS.OID
Left join Prod pp on WS.product_code=pp.Code
Left join MarA on WS.customer_car_brand=MarA.Code
Left join ModA on WS.customer_car_model=ModA.Code
Left join CS c on c.UserWS=UserWS.Oid
Left join CS css on css.Dis=Dis.OID
Left join BCIU on BCIU.Code=WS.used_bci
当我运行它时,出现此错误:
[Err] 42000 - [SQL Server]The multi-part identifier "Cat.OID" could not be bound. 42000 - [SQL Server]The multi-part identifier "UserWS.Oid" could not be bound. 42000 - [SQL Server]The multi-part identifier "Dis.OID" could not be bound. 42000 - [SQL Server]The multi-part identifier "Cat.Name" could not be bound. 42000 - [SQL Server]The multi-part identifier "Prod.Name" could not be bound. 42000 - [SQL Server]The multi-part identifier "Dis.Nombre" could not be bound. 42000 - [SQL Server]The multi-part identifier "UserWS.Nombre" could not be bound. 42000 - [SQL Server]The multi-part identifier "Cat.Segmento" could not be bound.
我失踪了什么?
,你有没有在'JOIN'包括'Cat'任何地方事实上,我会说。 –