小编Ant*_*Ant的帖子

MySQL EXPLAIN 不显示 FULLTEXT 的“使用索引”

我有一个基本表:

create table fullTextTest
(
    id INT(11) NOT NULL,
    superText CHAR(255) NOT NULL,
    superLongText TEXT NOT NULL,
    primary key (`id`),
    FULLTEXT KEY `superText` (`superText`),
    FULLTEXT KEY `superLongtext` (`superLongtext`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

insert into fullTextTest
    set id=1,
    superText="Hi guys, how is it goin'?",
    superLongtext="Please give me some dummy text to search on!!!"
;

show index from fullTextTest;
| fullTextTest |          0 | PRIMARY       |            1 | id            | A         |           1 |     NULL | NULL   |      | BTREE      |         | …
Run Code Online (Sandbox Code Playgroud)

mysql myisam full-text-search

6
推荐指数
1
解决办法
2698
查看次数

标签 统计

full-text-search ×1

myisam ×1

mysql ×1