Please note, this is a STATIC archive of website www.w3resource.com from 19 Jul 2022, cach3.com does not collect or store any user information, there is no "phishing" involved.
w3resource

MySQL DIVISION operator

DIVISION operator

MySQL division operator is used for integer division.

Syntax:

num / num

Arguments:

Name Description
num Dividend.
/ Division operator.
num Divisor.

Example of MySQL DIVISION() function

Code:

SELECT 12 / 3;

Explanation:

The above MySQL statement divides 12 by 3.

Sample Output:

mysql> SELECT 12 / 3;
+--------+
| 12 / 3 |
+--------+
| 4.0000 | 
+--------+
1 row in set (0.00 sec)

All Mathematical Functions>

MySQL Mathematical Functions, slide presentation

Previous: DIV
Next: EXP()