bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

MySQL DIV Function

Example

SELECT 10 DIV 5;

Definition and Usage

The DIV function is used for integer division (x is divided by y). An integer value is returned.

Syntax

x
 DIV
y

Parameter Values

ParameterDescription
xRequired. A value that will be divided by y
yRequired. The divisor

Technical Details

Works in:From MySQL 4.0

Previous

MySQL DEGREES() Function

Next

MySQL EXP() Function