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 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%'; 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
Archived
This topic is now archived and is closed to further replies.