This tutorial explains how to use the MySQL MOD function with syntax and examples.
The MySQL MOD function returns the remainder of n divided by m.
The syntax for the MOD function in MySQL is:
OR
OR
The value that will be divided by m.
The value that will be divided into n.
The MOD function can be used in the following versions of MySQL:
Let's look at some MySQL MOD function examples and explore how to use the MOD function in MySQL.
For example: