C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
MySQL MOD() FunctionThe mod() is a Math function of MySQL. This function is used to get the remainder of given values. Syntaxselect mod(n,m); Or Select n mod m; Or Select n % m; Parameter:n: number to be divided by m m: number that will divide n ReturnsThis function returns the remainder of n divided by m. Example 1select mod(13,5); Output: Example 2select 24 mod 4.3; Output: Example 3select 27.5 % 3; Output:
Next TopicMySQL Math
|