Quick Ref.
Functions
date
number
string
Data Types
date
number
string
Compatibility
a DIV b
Engine OK Alternative
mysql yes
oracle no FLOOR(a/b)
postgres no FLOOR(a/b)
sqlserver no FLOOR(a/b)

DIV

aDIVb returns the integer value of a divided by b.

8 DIV 3 -> 2
In this example we calculate the population in millions.

Results
See also: