【发布时间】:2015-12-21 14:27:14
【问题描述】:
我尝试在 MS Access 数据库中内连接三个表,但出现以下错误:
“(缺少的运算符)”。
这是我的查询:
select DISTINCT
Student.Student_Id,
Student.Name,
Student.Father_Name,
Student.Dob
from (Student
INNER JOIN Admissions
ON Student.Student_Id = Admissions.Student_Id)
INNER JOIN Batches
ON Admissions.Batch_Id = Batches.Batch_Id
where (Batches.Year = @p1
AND (Student.Student_Id LIKE @p2 + '%'))
【问题讨论】:
-
如果此查询是在 Access 表的查询生成器中创建的,我看不到它有问题。表是 MS Access 还是链接的 SQL 表?是对SQL数据库的直通查询吗?
标签: ms-access-2010