This tutorial explains how to use the MySQL DIV function with syntax and examples.
The MySQL DIV function is used for integer division where n is divided by m and an integer value is returned.
The syntax for the DIV function in MySQL is:
The value that will be divided by m.
The value that will be divided into n.
The DIV function can be used in the following versions of MySQL:
Let's look at some MySQL DIV function examples and explore how to use the DIV function in MySQL.
For example: