I have a table for some companies that may have many branches in different countries. These countries are inserted in countries field.
Now, I have to make a searching system that allows users to find companies that have any branch in a specific country.
My question is: Which one do I have to use ? MATCH AGAINST or LIKE ? The query must search all records to find complete matched items.
- attention: Records may have different country name separated with a comma.
MATCH AGAINSTclause is used in Full Text Search.for this you need to create a
full text indexon search columncountries.full text indexsearch is much faster thanLIKE '%country%'serach.