access 里 like 可否匹配一个字串集合?
假设有3个字串 abc,123,yui
我要找某字段存在包含这三个字串的值存在,那么得写:
select * from table where item like '*abc*' or like '*123*' or like '*yui*'
或者
select * from table where item like '*abc*' union
select * from table where item like '*123*' union
select * from table where item like '*yui*'
如果要模糊匹配的字串很多,那这样写起来就很麻烦了
access有没有像mssql里的
select * from table where item like '%' (集合) ‘%’
这样的语句解决这种问题?
谢谢指教 ^_^