In MySQL Mod operator also known as Modulo operation, returns the remainder of N divided by M.
To perform Modulo operation and get remainder, use the following syntax:
Parameters:
n: The value that will be divided by m.
m: The value that will be divided into n.
Note:
In the above example, we are performing Modulo operation and getting remainder value.
You can use MySQL Command Line Client to perform Modulo operation and get remainder value. It will look like this: