我正在写一个带有内部联接的SQL查询
select * from (table1 inner join table2 on table1.city = table2.code)
inner join table3 on table3.col1 = 5 and table3.col2 = 'Hello'
这给了我错误“不支持联接表达式”。
但是,如果我这样更改查询,则不会出现错误
select * from (table1 inner join table2 on table1.city = table2.code)
inner join table3 on table3.col1 = [SomeColumn] and table3.col2 = [SomeColumn]
为什么Access在第一个查询中给我一个错误?
最佳答案
Why is Access giving me an error on the first query?
嗯,就像错误消息中所说的那样,不支持JOIN表达式的形式。
您可能要尝试以下操作:
SELECT * FROM table1, table2, table3
WHERE table1.city=table2.code AND table3.col1=5 AND table3.col2='Hello'
关于ms-access - Access中的"join expression not supported",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16608313/