tags:

views:

44

answers:

3

Is there any method to do this:

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

Thanks

+2  A: 

Not with IN, only with OR.

David M
+2  A: 

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

Coronatus
A: 

Use RLIKE or REGEXP with a valid regular expression.

Taylor Leese
...functional, but extra regex overhead and not any less complex than `str LIKE '%x%' OR str LIKE '%y%'`
Matchu
If the IN clause was more complicated it could be useful. Not sure how the performance would match up against multiple LIKE's. If I had to guess I would say it wouldn't be much different.
Taylor Leese