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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1be7da4-45e40.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1be7da4-45e40.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?