MySQL全文索引有问题
我一直在输入下面的SQL语句,但它没有显示任何结果,我也不知道为什么。phpMyAdmin上的错误为:MySQL全文索引有问题,mysql,full-text-search,Mysql,Full Text Search,我一直在输入下面的SQL语句,但它没有显示任何结果,我也不知道为什么。phpMyAdmin上的错误为: #1191 - Can't find FULLTEXT index matching the column list 这是我的SQL语句: SELECT *, MATCH(subj_name, course_name, content_type) AGAINST('math, statistics, test') AS score from table1 WHERE MATCH(subj
#1191 - Can't find FULLTEXT index matching the column list
这是我的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;
这就是我制作索引的方式:
ALTER TABLE table1 ADD FULLTEXT(subj_name, course_name, content_type);
尝试添加
ALTER TABLE table1 ADD FULLTEXT fulltext_index(subj_name, course_name, content_type);