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)
| 归档时间: |
|
| 查看次数: |
3404 次 |
| 最近记录: |