Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Product Manuals » ElevateDB Version 2 SQL Manual » Operators » Text Index Operators |
Operator | Description |
CONTAINS | Returns 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 CONTAIN | Returns 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 ANY | Returns 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 ANY | Returns 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. |
-- 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'
Deviation | Details |
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 |
This web page was last updated on Thursday, November 16, 2023 at 10:39 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |