Why doesn't SQL LIKE work in Microsoft Access?

后端 未结 4 2003
借酒劲吻你
借酒劲吻你 2020-12-18 04:38

I want to my make a search-statement and query things like this

select * from table where col like \'%vkvk%\' 

But with trial and error I\'

4条回答
  •  遥遥无期
    2020-12-18 05:00

    I tried several "Like" syntax on one request, (I'm using VB.NET and a MS-ACCESS 2010 database), and none of them could get any other result than throwing an exception.Why? I'm not having any idea about that.

    I did this workaround that could be useful on some similar cases: Instead of

    SELECT dbFieldDisplayName FROM dbTableName WHERE dbFieldSearchName Like 'A*'

    I Used:

    SELECT dbFieldDisplayName FROM dbTableName WHERE dbFieldSearchName >='A' AND dbFieldSearchName <'AZZZ'

提交回复
热议问题