80
MySQL DIV() Function
The div() is a Math function of MySQL. This function is used for integer division, in which n is the number to be divided by the number m.
Syntax
Parameter
n : It is the number to be divided by m
m : It is the number that will divide n
Returns
This function returns the result as an integer value.
Example 1
Output:
Example 2
Output:
Example 3
Output:
Next TopicMySQL Math