NexusDB Manual V3 > SQL Reference > SQL Language Elements
Operators are symbols and keywords that specify an operation to be performed on one or more value expressions.
Arithmetic operators
The arithmetic operators perform operations on numeric values.
Note: The addition (+) and subtraction (-) operators are also used in arithmetic operations on datetime values.
See also: Numeric Value Functions.
Concatenation operators
The concatenation operator is used to concatenate string values.
Note: The arithmetic addition (+) operator can be used as an alternate string concatenation operator.
See also: String Value Functions.
Comparison operators
The comparison operators are used in some predicates to specify comparison tests.
Note: The equals sign (=) is also used as an assignment operator.
Boolean operators
The boolean operators are used to combine predicates in search conditions.
Note: Check the truth tables to see how combined boolean expressions are evaluated.
The equals sign is used for value assignments.
Operator precedence determines the order in which operations are performed during the execution of a complex value expression with multiple operators.
Operators are evaluated in the following order, ranked from highest to lowest precedence level:
Operators on the same precedence level are evaluated left to right based on their position in the value expression.
If a value expression has nested parentheses, the innermost expression is evaluated first.
Tip: Instead of relying on the defined operator precedence, it is recommended to use parentheses to explicitly specify the order of operations in complex value expressions with many operators. All operations inside parentheses are evaluated first to yield a single value before that value is used as an operand in other operations.
Conformance
|
© Nexus Database Systems Pty Ltd.