Does anyone know of a way to use wild cards in an IN operator? I know that you can use it with LIKE. But if you are doing a multiple term search in LIKE and you use % signs, the order affects the outcome. Any suggestions?
I don't think you can use "IN" in this situation. I would just code a bunch of "LIKE" conditions separated by "OR". For example
select * from my_table
where col1 like '%ABC%'
or col1 like '%DEF%'
or col1 like '%GHI%';
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.