Combining IN AND LIKE statements

Is there any way to do this:

SELECT * FROM `cores` WHERE superkinds IN ('%altro%', '%feste%')

thank

+3
source share
3 answers

WHERE superkinds LIKE '%altro%'
OR superkinds LIKE '%feste%'

+4
source

Not with IN, only with OR.

+2
source

Use RLIKEor REGEXPwith a valid regex.

-1
source

Source: https://habr.com/ru/post/1738107/


All Articles