Consider a column names MyCol
with a full-text index. We want to find those rows that have a value of |foo|
.
Tried this, but doesn't find those with exactly |foo|
:
SELECT * FROM MyTable WHERE CONTAINS(MyCol,'"|foo|"')
It returns anything with foo
. It seems as if pipes are disregarded as separators.
How can I escape, or otherwise ensure that the exact string |foo|
is found?