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. Syntaxselect greatest(exp1, exp2, exp3....); Prameter:Exp1, exp2, exp3.... expn : expressions for getting largest number. ReturnsThis function returns the largest number from the list. Example 1Select greatest(4,5,3,9,0); Output: Example 2Select greatest('j','a','v','a'); Output: Example 3Select greatest('TheDeveloperBlog','string_finction','math_function','date_function',""); Output:
Next TopicMySQL Math
|