PostgreSQL MODULO
From w3cyberlearnings
Contents |
Postgresql % operator
This operator returns the remainder of N divided by M.
Syntax % operator
a % b
Example 1
postgres=# SELECT 5%3 e1; e1 ---- 2 (1 row) postgres=# SELECT 5%2 e3; e3 ---- 1 (1 row)
Related Links
- modulo(%)
- exponentiation(^)
- square root(|/)
- cube root(||/)