Oracle8i interMedia Text Reference Release 2 (8.1.6) Part Number A77063-01 |
|
Query Operators, 25 of 26
Wildcard characters can be used in query expressions to expand word searches into pattern searches. The wildcard characters are:
Right truncation involves placing the wildcard on the right-hand-side of the search string.
For example, the following query expression finds all terms beginning with the pattern scal:
'scal%'
Left truncation involves placing the wildcard on the left-hand-side of the search string.
To find words such as king, wing or sing, you can write your query as follows:
'_ing'
You can write this query more generally as:
'%ing'
You can also combine left-truncated and right-truncated searches to create double-truncated searches. The following query finds all documents that contain words that contain the substring %benz%
'%benz%'
When your wildcard queries are left- and double-truncated, you can improve query performance by creating a substring index. Substring indexes improve the query performance for all types of left-truncated wildcard searches such as %ed, _ing, or %benz%.
|
![]() Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
|