N % M
Modulo operator. Returns the remainder of N
divided by M
. See also MOD.
SELECT 1042 % 50; +-----------+ | 1042 % 50 | +-----------+ | 42 | +-----------+
© 2019 MariaDB
Licensed under the Creative Commons Attribution 3.0 Unported License and the GNU Free Documentation License.
https://mariadb.com/kb/en/modulo-operator/