问题描述
我使用ASP和
Access数据库的Like Query获得了意想不到的结果。
此查询 -
选择PN,Qty来自库存,其中PN喜欢''SSW-10%'';
返回我的预期:
PN数量
SSW -101-01-TD 1780
SSW-101-01-TD 1780
SSW-102-01-GD 8900
....但是这一个 -
SELECT PN,Qty From Inventory Where PN Like''SSW-101%'';
返回0结果,即使看在上面的结果中,它应该
返回2条记录。
唯一的区别是附加字符''101%''与''10 %''。
离线,它会返回我的预期。
提前致谢。
I am getting unexpected results with a Like Query using ASP and an
Access database.
This query -
SELECT PN, Qty From Inventory Where PN Like ''SSW-10%'';
returns what I expect:
PN Qty
SSW-101-01-T-D 1780
SSW-101-01-T-D 1780
SSW-102-01-G-D 8900
.... but this one -
SELECT PN, Qty From Inventory Where PN Like ''SSW-101%'';
returns 0 results, even though looking at the results above, it should
return 2 of the records.
The only difference is the additional character ''101%'' versus ''10%''.
Offline, it returns what I expect.
Thanks in advance.
推荐答案
这篇关于在ASP中查询Access的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!