using php + mysql, have database table containing small phrases like;
+----+-----------------+ | id | phrase | +----+-----------------+ | 1 | quick brown fox | | 2 | slow green | | 3 | lazy dog | | 4 | ultra hyper cat | +----+-----------------+
is there practical , efficient way query database small body of text such like...
the quick brown fox jumped on lazy dog
and have return rows 1 , 3? note; text in table consistently formatted no punctuation, single spaces, etc.
thank you.
you looking full text search
select phrase my_tbl match( phrase ) against ('the quick brown fox jumped on lazy dog')
Comments
Post a Comment