SQL Server语法错误:多部分标识符未绑定

时间:2018-05-31 19:44:23

标签: sql-server view multipart

这适用于SQL Server 2012 Express。请参阅下面的陈述 - 它们是视图创建的一部分。

SELECT 
    PE.*, ZOTable.DOCNAME AS 'ZO_DOCNAME', SOR.DOCNAME AS 'SoR_DOCNAME'
FROM 
    dbo.TAXPARCEL_EQUALIZER AS PE, 
    dbo.ZONINGORDINANCE AS ZOTable, 
    dbo.SCHEDULEOFREGULATION AS SOR
LEFT JOIN 
    dbo.TAXPARCEL_EQUALIZER AS te1 ON ZOTable.UNIT = te1.UNIT 
LEFT JOIN 
    dbo.TAXPARCEL_EQUALIZER AS te2  ON SOR.ZONECLASS = te2.ZONING1
LEFT JOIN 
    dbo.TAXPARCEL_EQUALIZER AS te3  ON SOR.ZONECLASS = te3.ZONING2

我收到错误

  

无法绑定多部分标识符

在SQL Server Management Studio中的ZOTable.UNIT

我看过网上但找不到任何修复我的例子。如果我要删除, dbo.SCHEDULEOFREGULATION AS SOR,那么错误就会消失。但后来我不确定如何将该表放入视图中?

谢谢!

0 个答案:

没有答案