Thread: mysql query
View Single Post
Old 04-05-2008, 04:25 AM   #6 (permalink)
Sand_Devil
The Wanderer
 
Sand_Devil's Avatar
 
Join Date: Nov 2007
Location: El Paso, TX
Posts: 7
Thanks: 1
Sand_Devil is on a distinguished road
Default

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.

Last edited by Sand_Devil : 04-05-2008 at 04:28 AM. Reason: Additional clarification
Send a message via ICQ to Sand_Devil Send a message via AIM to Sand_Devil Send a message via MSN to Sand_Devil Send a message via Yahoo to Sand_Devil
Sand_Devil is offline  
Reply With Quote
The Following User Says Thank You to Sand_Devil For This Useful Post:
johnN (04-05-2008)