rahulephp Posted April 22, 2010 Share Posted April 22, 2010 Hi there, Could you please help me to find-out the solution? I need to use "LIKE" command of mysql. Below are title from a Product table. If i search for "Alarm" then it should show me result only for title which has word alarm. (0th and 2nd only) table_name = product Column_name = title 0 ->Casio G-Shock Velocity Indicator Alarm watch 1 ->Seiko Velatura Tachymeter Chronograph watch 2 ->Citizen promaster Alarm perpetual watch Thank you in anticipation Quote Link to comment https://forums.phpfreaks.com/topic/199353-like-command-of-mysql-for-searching/ Share on other sites More sharing options...
trq Posted April 22, 2010 Share Posted April 22, 2010 SELECT title FROM product WHERE title LIKE '%Alarm%'; Quote Link to comment https://forums.phpfreaks.com/topic/199353-like-command-of-mysql-for-searching/#findComment-1046266 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.