CONTAINS
({column | *}, '<contains_search_condition>')
The search
condition is enclosed in single quotes, but individual words or phrases inside
the search condition can be offset with double quotes. If the condition only
includes single quotes, the argument is passed as a single search condition. A
search condition of ' "weld" AND "grind" 'returns all rows
having both weld and grind in the column. In contrast, a search condition of
'weld AND grind' returns all rows having weld and grind separated by a stopword.
Because stopwords, or noise words, are not recognized, the search condition of 'weld
OR grind' would produce an identical result. The given statement does not
return the ID and Description values for all rows containing the words weld and
grind near each other in the full-text enabled columns. To perform such a
search, DBA/Developer would use the NEAR keyword in the CONTAINS predicate. The
given statement does not return the ID and Description values for all rows with
a Name containing either the word weld or grind. Using an asterisk (*) in the
first argument of the CONTAINS predicate specifies that all columns registered
for full-text searching be used. The given statement does not return the ID and
Description values for all rows containing the phrase "weld and
grind" in the full-text enabled columns.
No comments:
Post a Comment