[英]ms-access: missing operator in query expression
i have this sql statement in access: 我在访问中有此sql语句:
SELECT *
FROM (SELECT [Occurrence Number], [1 0 Preanalytical (Before Testing)], NULL, NULL,NULL FROM [Lab Occurrence Form]
WHERE NOT ([1 0 Preanalytical (Before Testing)] IS NULL)
UNION
SELECT [Occurrence Number], NULL, [2 0 Analytical (Testing Phase)], NULL,NULL FROM [Lab Occurrence Form] WHERE NOT ([2 0 Analytical (Testing Phase)] IS NULL)
UNION
SELECT [Occurrence Number], NULL, NULL, [3 0 Postanalytical ( After Testing)],NULL FROM [Lab Occurrence Form] WHERE NOT ([3 0 Postanalytical ( After Testing)] IS NULL)
UNION
SELECT [Occurrence Number], NULL, NULL,NULL [4 0 Other] FROM [Lab Occurrence Form] WHERE NOT ([4 0 Other] IS NULL)
) AS mySubQuery
ORDER BY mySubQuery.[Occurrence Number];
everything was fine until i added the last line: 一切都很好,直到我添加了最后一行:
SELECT [Occurrence Number], NULL, NULL,NULL [4 0 Other] FROM [Lab Occurrence Form] WHERE NOT ([4 0 Other] IS NULL)
i get this error: 我收到此错误:
syntax error (missing operator) in query expression 'NULL [4 0 Other]'
anyone have any clues why i am getting this error? 任何人都有任何线索,为什么我会收到此错误?
您错过了一个逗号:
NULL, [4 0 Other]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.