Home > Database > Mysql Tutorial > body text

What does mysql full text index refer to?

WBOY
Release: 2023-06-04 10:16:02
forward
1183 people have browsed it

Description

1. The MyISAM storage engine supports full-text indexing, which is used to find keywords in the text instead of directly comparing whether they are equal.

The search condition uses MATCH AGAINST instead of ordinary WHERE.

2. Full-text index is implemented using inverted index, which records the mapping of keywords to the document where they are located.

The InnoDB storage engine also begins to support full-text indexing in MySQL 5.6.4.

Example

Create a full-text index when creating a table.

    CREATE TABLE article (
                  id INT AUTO_INCREMENT NOT NULL PRIMARY KEY,
                  title VARCHAR(200),
                  content TEXT,
                  FULLTEXT(title, content)
              ) TYPE=MYISAM;
Copy after login

The above is the detailed content of What does mysql full text index refer to?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:yisu.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template