DIV
Perform integer division. This operator divides one number by another and returns the integer result, discarding any remainder.
Syntax
DIVDescription
Examples
SELECT 300 DIV 7;
+-----------+
| 300 DIV 7 |
+-----------+
| 42 |
+-----------+
SELECT 300 DIV 0;
+-----------+
| 300 DIV 0 |
+-----------+
| NULL |
+-----------+See Also
Last updated
Was this helpful?

