mysql> mysql> SELECT MOD(234, 10); +--------------+ | MOD(234, 10) | +--------------+ | 4 | +--------------+ 1 row in set (0.02 sec) mysql> mysql> SELECT 253 % 7; +---------+ | 253 % 7 | +---------+ | 1 | +---------+ 1 row in set (0.00 sec) mysql> mysql> SELECT MOD(29,9); +-----------+ | MOD(29,9) | +-----------+ | 2 | +-----------+ 1 row in set (0.00 sec) mysql> mysql> SELECT 29 MOD 9; +----------+ | 29 MOD 9 | +----------+ | 2 | +----------+ 1 row in set (0.00 sec) mysql>