C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
| MySQL DIV() FunctionThe 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
 select n div m; 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 1Select 4 div 2; Output:   Example 2Select 56.2 div 3; Output:   Example 3Select 4.9 div -4; Output:   
Next TopicMySQL Math
 |