Javatpoint Logo
Javatpoint Logo

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





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA