JSW*_*189 2 mysql full-text-search
我一直在输入以下SQL语句,但它没有发现任何结果,我无法弄清楚原因.phpMyAdmin上的错误如下:
#1191 - Can't find FULLTEXT index matching the column list
Run Code Online (Sandbox Code Playgroud)
这是我的SQL语句:
SELECT *, MATCH(subj_name, course_name, content_type) AGAINST('math, statistics,
test') AS score from table1 WHERE MATCH(subj_name, course_name, content_type)
AGAINST('math, statistics, test') ORDER BY score desc;
Run Code Online (Sandbox Code Playgroud)
这就是我制作索引的方式:
ALTER TABLE table1 ADD FULLTEXT(subj_name, course_name, content_type);
Run Code Online (Sandbox Code Playgroud)
Alo*_*tan 10
尝试添加
ALTER TABLE table1 ADD FULLTEXT fulltext_index(subj_name, course_name, content_type);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3431 次 |
| 最近记录: |