对于content字段,我建立了fulltext索引

然后我往content字段,放入了一篇文章,里面包含了‘龙卷风’这个字段

然后我使用like去匹配这篇文章,在解释器上却显示没有使用fulltext,依然使用全文扫文 full
白建了索引 T^T

后来百度一下,使用match和against的方式,却可以使用fulltext索引

是不是全文索引,不能在like模糊查询上面使用呢?为什么呢?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
Full-text indexes are for MATCH AGAINST operations, not ordinary WHERE clause operations. (引自High Performance MySQL 3rd Edition)
此外我觉得你这个表建得不对。主键应该是id,id字段应该auto increase并且not null。主键一般应避免使用较长的字符串,比如uuid。
首先把题目的错误的英语拼写纠正