mod(y, x) remainder of y/x : mod « Math Functions « PostgreSQL






mod(y, x) remainder of y/x


postgres=# -- mod(y, x) remainder of y/x
postgres=# select mod(9,4);
 mod
-----
   1
(1 row)

postgres=#
           
       








Related examples in the same category

1.mod(x, y): Returns the remainder (modulus) when dividing x / y