mysql> select mod(16,3); +-----------+ | mod(16,3) | +-----------+ | 1 | +-----------+ 1 row in set (0.00 sec)