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:

MySQL Math DIV() Function

Example 2

Output:


MySQL Math DIV() Function

Example 3

Output:

MySQL Math DIV() Function
Next TopicMySQL Math




Latest Courses