An operator manipulates data items and returns a result. Operators manipulate individual data items called operands or arguments. They are represented by special characters or by keywords. Syntactically, an operator appears before an operand, after an operand, or between two operands.
The OLAP expression syntax has the following types of operators:
For conditional operators, go to Conditions.
A unary operator operates on only one operand.
Operator |
Description |
|---|---|
+ |
Positive value |
- |
Negative value |
operator operand
-5 is a negative number.
A binary operator operates on two operands.
Operator |
Description |
|---|---|
+ |
Add |
- |
Subtract |
* |
Multiply |
/ |
Divide |
operand operator operand
7 * 2 is 14.
The concatenation operator (||) manipulates text expressions.
operand || operand
'The date today is: ' || sysdate generates a text string such as The date today is: 23-AUG-06.
Copyright © 2003, 2007, Oracle. All rights reserved.