Numeric Operators
- Last Updated: May 15, 2020
- 1 minute read
- DataDirect Connectors
- JDBC
- IBM Db2 5.1
- MySQL 5.1
- Progress OpenEdge 5.1
- SAP Sybase 5.1
- Documentation
You can use a numeric operator in an expression to negate, add, subtract, multiply, and divide numeric values. The result of this operation is also a numeric value. The + and - operators are also supported in date/time fields to allow date arithmetic.
The following table lists the supported arithmetic operators.
| Entry SQL Level Operator | HiveQL Operator |
|---|---|
| * | Supported |
| + | Supported |
| - | Supported |
| / | Supported |
| ^ (XOR) | N/A |
| % (Mod) | N/A |
| & (bitwise AND) | N/A |