问题
I think this is a very simple query but I just can't find it in any of my programming books or on the net.
I have this query: SELECT * FROM test WHERE MATCH (column1,column2) AGAINST ('value1');
But I need AGAINST to have multiple values e.g. (value1,value2,value3)
can anyone help?
回答1:
I think the BOOLEAN MODE modifier might be what you are looking for.
SELECT * FROM test WHERE MATCH (column1,column2)
AGAINST ('+value1 +value2 +value3' IN BOOLEAN MODE);
来源:https://stackoverflow.com/questions/15239156/mysql-match-against-with-multiple-values-to-against