MATCH AGAINST
Perform a full-text search. This construct searches for a text query against a set of columns indexed with a FULLTEXT index.
Syntax
MATCH (col1,col2,...) AGAINST (expr [search_modifier])Description
Examples
CREATE TABLE ft_myisam(copy TEXT,FULLTEXT(copy)) ENGINE=MyISAM;
INSERT INTO ft_myisam(copy) VALUES ('Once upon a time'), ('There was a wicked witch'),
('Who ate everybody up');
SELECT * FROM ft_myisam WHERE MATCH(copy) AGAINST('wicked');
+--------------------------+
| copy |
+--------------------------+
| There was a wicked witch |
+--------------------------+Last updated
Was this helpful?

