PostgreSQL EXPONENTIATION
From w3cyberlearnings
Contents |
Postgresql ^ operator
Returns X raised to the power of Y.
Syntax ^ operator
x^y
Example 1
postgres=# SELECT 2^2 e2, 2^3 e3; e2 | e3 ----+---- 4 | 8 (1 row)
Related Links
- modulo(%)
- exponentiation(^)
- square root(|/)
- cube root(||/)