如何使用LIKE运算符? [英] How to Use the LIKE operator?

查看:73
本文介绍了如何使用LIKE运算符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是使用带有Access 2003的Microsoft脚本编辑器在DataAccessPage中完成的。


假设我使用此行在字段中搜索匹配的字符串。

This is done in a DataAccessPage using the microsoft script editor with Access 2003.

Say I use this line to search a field for a matching string.

展开 | 选择 | Wrap | 行号

推荐答案

詹姆斯。


尝试输入''%' '通配符代替'''''。
Hi, James.

Try to enter ''%'' wildcard instead of ''*''.


我遇到了同样的问题。我在想rs.find只得到字符串jam * s。或jam%s或jam%s并试图匹配它。它没有看到字符%是通配符。当我输入james时,搜索工作正常。


问题。在这一行:
I get the same problem. I''m thinking that the rs.find is only getting the string "jam*s" or "jam%s" and trying to match it. It doesn''t see that the character % is a wildcard. the search works just fine when I type in "james".

Question. In this line:
展开 | 选择 < span class =codeDivider> | Wrap | 行号



我遇到同样的问题。我在想rs.find只得到字符串jam * s。或jam%s或jam%s并试图匹配它。它没有看到字符%是通配符。当我输入james时,搜索工作正常。


问题。在这一行:
I get the same problem. I''m thinking that the rs.find is only getting the string "jam*s" or "jam%s" and trying to match it. It doesn''t see that the character % is a wildcard. the search works just fine when I type in "james".

Question. In this line:
展开 | 选择 < span class =codeDivider> | Wrap | 行号


这篇关于如何使用LIKE运算符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆