Thread: mysql query
View Single Post
Old 04-05-2008, 08:12 PM   #7 (permalink)
johnN
The Wanderer
 
Join Date: Apr 2008
Posts: 8
Thanks: 2
johnN is on a distinguished road
Default

Quote:
Originally Posted by Sand_Devil View Post
If I understand what you are suggesting... word being the entered string and blah_field being the database entry. || allows you to concatenate strings. To search for the % you need to place an escape, usually \

where word like ('%'||blah_field)

Should do the trick.
You are instantly and permanently my favorite person.

I had to use CONCAT but the details you gave me helped me solve it within minutes!

Thank!
johnN is offline  
Reply With Quote