Icon Text Index Operators

The following are the string operators in ElevateDB, ordered by their operator precedence:

OperatorDescription
CONTAINSReturns True if the left column reference contains all of the word values specified in the right string expression (not necessarily next to each other). The asterisk (*) can be used to specify a trailing wildcard.
DOES NOT CONTAINReturns True if the left column reference does not contain all of the word values specified in the right string expression. It is the inverse of the CONTAINS operator.
CONTAINS ANYReturns True if the left column reference contains any of the word values specified in the right string expression (not necessarily next to each other). The asterisk (*) can be used to specify a trailing wildcard.
DOES NOT CONTAIN ANYReturns True if the left column reference does not contain any of the word values specified in the right string expression. It is the inverse of the CONTAINS ANY operator.

Examples
-- The following uses the text index
-- on the Notes column to find any rows
-- where the word 'angry', 'anger', or 'angered'
-- appears.

SELECT *
FROM customers
WHERE Notes CONTAINS ANY 'angry anger angered'

-- The following uses the text index
-- on the Text column to find any rows
-- where the words 'little', 'red',
-- 'riding', and 'hood' appear

SELECT *
FROM Documents
WHERE Text CONTAINS 'little red riding hood'

SQL 2003 Standard Deviations
The following areas are where ElevateDB deviates from the SQL 2003 standard:

DeviationDetails
CONTAINS
DOES NOT CONTAIN
CONTAINS ANY
DOES NOT CONTAIN ANY
The CONTAINS, CONTAINS ANY, DOES NOT CONTAIN, and DOES NOT CONTAIN ANY operators are ElevateDB extensions
Image