Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在 MS Access 上运行查询我是其中的新手。我必须找到两个日期的差异,然后找到差异 > 10 的人数。我正在使用datediff
datediff
相同的功能
SELECT count(Admission No.) From Admissions where DATEDIFF(DAY, Admission Date, Discharge Date) >10
我要去哪里错了我收到语法错误
尝试将字段名称封装在方括号中
SELECT count([Admission No.]) From Admissions where DATEDIFF(DAY, [Admission Date], [Discharge Date]) >10