MySQL search exact word with $ in word
问题 I've been trying to find exact words and my research isn't helping me. Solutions I've found: $query .= "WHERE text REGEXP '[[:<:]]($word)[[:>:]]'"; // OR $query .= "WHERE MATCH(text) AGAINST('$word') "; but neither are returning my matches. I'm searching for stock symbols in my db (eg $aapl ). And using LIKE '%$word%' will return $bac if you search for $ba . 回答1: You will want to use MySql Full Text Search functions to accomplish what you describe above. Enjoy! 回答2: MATCH AGAINST doesn't work