C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
MySQL GREATEST() FunctionThe greatest() is a Math function of MySQL. This function is used to get the largest number from the list. Syntax
select greatest(exp1, exp2, exp3....); Prameter:
Exp1, exp2, exp3.... expn : expressions for getting largest number. ReturnsThis function returns the largest number from the list. Example 1
Select greatest(4,5,3,9,0); Output:
Example 2
Select greatest('j','a','v','a');
Output:
Example 3
Select greatest('TheDeveloperBlog','string_finction','math_function','date_function',"");
Output:
Next TopicMySQL Math
|