并从这里使用 postgres 北风端口: http ://code.google.com/p/northwindextended/downloads/detail?name=northwind.postgre.sql
我无法在数据库上执行此查询:
SELECT TRIM(t.TerritoryDescription) AS TerritoryDescription
FROM Territories t
INNER JOIN EmployeeTerritories et ON t.TerritoryID = et.TerritoryID
INNER JOIN Employees e ON et.EmployeeID = e.EmployeeID
WHERE e.EmployeeID = 1
错误是:
错误:列 t.territoryid 不存在 第 3 行:INNER JOIN EmployeeTerritories et ON t.Territory
但是表格territories
和territoryid
列都在那里。