In MySQL div operator is used to perform integer division. The MySQL DIV operator will return integer value.
To perform integer division, use the following syntax:
Note:
In the above example, we are performing integer division operation with the help of DIV
operator.
You can use MySQL Command Line Client to perform integer division operation. It will look like this: