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