PolarDB for PostgreSQL (Compatible with Oracle) supports the following arithmetic operators for numeric calculations.
| Operator | Description | Example | Result |
|---|---|---|---|
+ | Addition | 2 + 3 | 5 |
- | Subtraction | 2 - 3 | -1 |
* | Multiplication | 2 * 3 | 6 |
/ | Division. Integer division truncates the result. | 4 / 2 | 2 |
** | Exponentiation. | 2 ** 3 | 8 |
该文章对您有帮助吗?