Mega Code Archive

 
Categories / MySQL Tutorial / Math Numeric Functions
 

The modulo function returns the remainder of two numbers

mysql> mysql> SELECT MOD(14, 3) as Result; +--------+ | Result | +--------+ |      2 | +--------+ 1 row in set (0.00 sec) mysql>