How to implement like multiple wildcard characters in sql?

there is a problem. What should I do if I want to take a record that matches multiple characters in a field?
select *
from actor
where last_name like ("% DAVI%","MOSTEL%","ABC","kkk%aa")
the above sql statement is incorrect. Like does not support multiple strings. How can it be implemented?
Thank you

Mar.14,2021

concatenate with OR, where last_name like'% DAVI%' OR last_name like 'MOSTEL%' OR.


if there is not much patterns, use

last_name LIKE patt1 OR last_name LIKE patt2 ...
Just

. If you have a lot of patterns, you can store patterns in a table patterns (pat) , and then:

  

if you are using oracle, you can use regular functions, regexp_like

Menu