简体   繁体   中英

How to use LIKE operator with wildcards in parameterized query in MS-Access

I am using MS Access database, where I need to pass parametrized like query. Actually MS Access uses like in this format ... LIKE ' [par1] ' {par1 is a parameter in ms-access-query} So I need a way to use parametrized like query with wildcard support. For example, if user enter 325 for par1, sql-command text in condition is ... WHERE field1 Like "*325*"

您是否尝试过以下操作:

LIKE "*" & [par1] & "*"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM