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
A special construct used to perform a fulltext search on a fulltext index.
See Fulltext Index Overview for a full description, and Full-text Indexes for more articles on the topic.
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 |
+--------------------------+This page is licensed: GPLv2, originally from fill_help_tables.sql
Last updated
Was this helpful?

