SQL arithmetic operators |
Arithmetic operators |
Arithmetic operators take two numeric values (either literals or variables) and perform a calculation that returns a single numeric value.
|
influxdb3_clustered |
name |
parent |
Arithmetic operators |
Operators |
|
|
301 |
| Operator | Description | Example | Result |
| :------: | :------------- | ------- | -----: |
| `+` | Addition | `2 + 2` | `4` |
| `-` | Subtraction | `4 - 2` | `2` |
| `*` | Multiplication | `2 * 3` | `6` |
| `/` | Division | `6 / 3` | `2` |
| `%` | Modulo | `7 % 2` | `1` |
|
/shared/sql-reference/operators/arithmetic.md |