Oracle Text Reference Release 9.2 Part Number A96518-01 |
|
This chapter describes the special characters that can be used in Text queries. In addition, it provides a list of the words and characters that Oracle Text treats as reserved words and characters.
The following topics are covered in this chapter:
The grouping characters control operator precedence by grouping query terms and operators in a query expression. The grouping characters are:
The beginning of a group of terms and operators is indicated by an open character from one of the sets of grouping characters. The ending of a group is indicated by the occurrence of the appropriate close character for the open character that started the group. Between the two characters, other groups may occur.
For example, the open parenthesis indicates the beginning of a group. The first close parenthesis encountered is the end of the group. Any open parentheses encountered before the close parenthesis indicate nested groups.
To query on words or symbols that have special meaning to query expressions such as and & or| accum, you must escape them. There are two ways to escape characters in a query expression:
In the following examples, an escape sequence is necessary because each expression contains a Text operator or reserved symbol:
'AT\&T' '{AT&T}' 'high\-voltage' '{high-voltage}'
The open brace { signals the beginning of the escape sequence, and the closed brace } indicates the end of the sequence. Everything between the opening brace and the closing brace is part of the escaped query expression (including any open brace characters). To include the close brace character in an escaped query expression, use }}
.
To escape the backslash escape character, use \\
.
The following table lists the Oracle Text reserved words and characters that must be escaped when you want to search them in CONTAINS
queries:
|
Copyright © 1998, 2002 Oracle Corporation. All Rights Reserved. |
|