有人可以告诉我 Access SQL 中此语句中的 where 子句有什么问题吗
SELECT * INTO [Enrolled Students]
FROM [Candidate Details];
Where Student ID != 'rejected' OR 'pending' OR 'taster';
或者如果可能,是否可以将其更正为 IsNumeric(Student ID) 的位置?
我似乎无法弄清楚
多谢你们!
SELECT * INTO [Enrolled Students]
FROM [Candidate Details]
Where [Student ID] not in( 'rejected', 'pending' ,'taster');
在 MS Access 中
SELECT * INTO [Enrolled Students]
FROM [Candidate Details]
Where [Student ID] Not IN ("rejected","pending","taster");
如果Student ID可以包含“rejected”,它似乎是一个文本字段。在这种情况下,Not In 更方便,否则您将不得不说:
Where [Student ID] <> "rejected" And [Student ID] <> "pending" <...>