modulus operator : MOD « Math « SQL / MySQL






modulus operator

    
mysql>
mysql> SELECT 5 % 3;
+-------+
| 5 % 3 |
+-------+
|     2 |
+-------+
1 row in set (0.00 sec)

mysql>

   
    
    
    
  








Related examples in the same category

1.MOD in MySQL
2.Use the MOD() function to divide the Amount values by 10 and then return the remainder from that division.
3.The MOD() function returns the remainder derived by dividing two numbers.
4.Treat Monday as the first day of the week and Sunday as the last, use a the MOD( ) function to map Monday to 0