访问字段不包含数字的查询条件

Dan*_*sch -1 sql ms-access ms-access-2007

我想制定一个与 %Any Number% 不同的查询条件,其中包括数值以及任何包含数字的字符串。现在我用这个作为我的表达方式。它有效,但我想简化我的代码。

SELECT Distinct tblProductionTime.production_order_number
FROM tblProductionTime
GROUP BY tblProductionTime.production_order_number
HAVING (((tblProductionTime.production_order_number) Not ALike "%0%" And
(tblProductionTime.production_order_number) Not ALike "%1%" And
(tblProductionTime.production_order_number) Not ALike "%2%" And
(tblProductionTime.production_order_number) Not ALike "%3%" And
(tblProductionTime.production_order_number) Not ALike "%4%" And
(tblProductionTime.production_order_number) Not ALike "%5%" And
(tblProductionTime.production_order_number) Not ALike "%6%" And
(tblProductionTime.production_order_number) Not ALike "%7%" And
(tblProductionTime.production_order_number) Not ALike "%8%" And
(tblProductionTime.production_order_number) Not ALike "%9%"));
Run Code Online (Sandbox Code Playgroud)

Fio*_*ala 5

怎么样:

Not ALike "%[0-9]%"
Run Code Online (Sandbox Code Playgroud)

这将捕获在任意位置包含 0 到 9 之间任何数值的字段/列。