Hello all,
Just wondering if there is a way to do this:
SELECT image_oname, image_mname
FROM images
WHERE image_oname LIKE '%value%' OR image_mname LIKE '%value%'
But using IN() instead like this:
SELECT image_oname, image_mname
FROM images
WHERE '%value%' IN (image_oname,image_mname)
Using IN() works fine if you're looking for an exact match 'value' but I don't know how to use '%value%' LIKE with IN().
Something like(obviously not correct...):
SELECT image_oname, image_mname
FROM images
WHERE '%value%' LIKE IN (image_oname,image_mname)
Any help appreciated as always!
Thanks,
Peter