Hi guys,
I can't seem to figure this one out at the moment, hope you can help me. I'm trying to query a MySQL server with "where row IN('item1','item2','item3')" but would also like to be able to use pattern matching, "where row LIKE 'item1%'".
This returns an empty result:
Code:
select * from table where row IN('item1%','item2%','item3%')
I can't seem to figure out how I can do this. Can I combine LIKE and IN in some way or is this just not possible with MySQL?
Hope you guys have some good answers,
Sincerely,
Trymbill
|