0

here my table looks like

course{
id,title,description,instructor}

i was trying to match a word from description

this is what i have tried

SELECT * FROM course WHERE MATCH (description) AGAINST ('java' IN BOOLEAN MODE);

got this error Can't find FULLTEXT index matching the column list

mule
  • 13
  • 3
  • `MATCH .. AGAINST` can be applied only when you have created fulltext index previously. Do it. Or use common searching via string functions. – Akina Mar 19 '20 at 08:35
  • Does this answer your question? [MySQL FULLTEXT indexes issue](https://stackoverflow.com/questions/963534/mysql-fulltext-indexes-issue) – Reza Ahmadi Mar 19 '20 at 08:35
  • i have not created the fulltext index thank you – mule Mar 19 '20 at 08:40

1 Answers1

0

I think that you could use this:

SELECT * FROM course WHERE description LIKE '%java%'
besartm
  • 558
  • 1
  • 7
  • 14