在Access 2003查询中使用like [英] using like in access 2003 queries
本文介绍了在Access 2003查询中使用like的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我在Access 2003中有一个表,我想在其中使用like语句,但不能.
我的查询是这样的:
Hi all,
I have a table in access 2003 and I want to use like statement in it but I can''t.
My query is like this:
Select * from Mytbl where title like ''*news *''
我也用这个:
and I also use this:
Select * from Mytbl where title like ''%news%''
它们都不起作用.
我的意思是他们不返回任何行.
none of them work.
I mean they don''t return any row.
推荐答案
尝试一下,
Try this,
Select * from Mytbl where title like ''*news''
或
or
Select * from Mytbl where title like ''news*''
或
or
Select * from Mytbl where title like ''*news*''
亲爱的ToniyoJackson
我应该提到,起初我是在vb .net代码中而不是在访问中使用它,所以它没有任何行
我尝试了您的建议,但同样不会返回任何行
dear ToniyoJackson
i should mention that at first i m using that in access not in vb .net code it does not any row
i try your suggestion but again it does not return any row
这篇关于在Access 2003查询中使用like的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文