更新时间:2025-04-23 gmt 08:00
rds for mysql 8.0是否支持全文检索-j9九游会登录
mysql 8.0版本支持全文检索,关键字为fulltext。可执行如下sql语句测试。
- 创建表
create table article ( id int unsigned not null auto_increment, title varchar(200) default null, content text, primary key (id), fulltext key title (title,content), fulltext key fulltext_article (title,content) ) engine=innodb default charset=utf8;
- 创建索引
alter table article add fulltext index fulltext_article (title,content);
- 查看索引
show index from article;
相关文档
意见反馈
文档内容是否对您有帮助?
提交成功!非常感谢您的反馈,我们会继续努力做到更好!
您可在查看反馈及问题处理状态。
系统繁忙,请稍后重试
如您有其它疑问,您也可以通过华为云社区问答频道来与我们联系探讨