HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
MySQL Functions : Return the remainder of 18/4
The MOD() function returns the remainder of a number divided by another number.
MOD(x, y)
Parameter | Description |
---|---|
x | Required. A value that will be divided by y |
y | Required. The divisor |
Works in: | From MySQL 4.0 |
---|
Return the remainder of 18/4:
SELECT 18 MOD 4;
Return the remainder of 18/4:
SELECT 18 % 4;