ms-access - Access中的"join expression not supported"

标签 ms-access ms-access-2007

我正在写一个带有内部联接的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/

相关文章:

ms-access - 将查询参数传递给子报表

vba - 数据库损坏后,会产生错误

c# - 已经有一个打开的 DataReader 与此命令关联,必须先在 C# 中将其关闭

sql - 检查 Access 表是否存在

ms-access - 创建查询时 MS Access 堆栈空间不足

vb.net - Access 更新时 VB.Net 中的事件

sql - 将 Access 数据库转换为 SQL

ms-access - 枚举中的数组

c# - 查询名称中有空格的表

mysql - 将DAO QueryDef保存到临时查询并将结果输出到Excel