开发者

Combining IN AND LIKE operators

开发者 https://www.devze.com 2022-12-23 15:31 出处:网络
Is there any method 开发者_开发问答to do this: SELECT * FROM `cores` WHERE superkinds IN (\'%altro%\', \'%feste%\')

Is there any method 开发者_开发问答to do this:

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

Thanks


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


Not with IN, only with OR.


Use RLIKE or REGEXP with a valid regular expression.

0

精彩评论

暂无评论...
验证码 换一张
取 消