bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

MySQL LEAST() Function

Example

SELECT LEAST(3, 12, 34, 8, 25);

Definition and Usage

The LEAST() function returns the smallest value of the list of arguments.

Note

See also the GREATEST() function.

Syntax

LEAST(
arg1
,
arg2
,
arg3
, ...)

Parameter Values

ParameterDescription
arg1 , arg2 , arg3 , ...Required. The list of arguments to be evaluated

Technical Details

Works in:From MySQL 4.0

Previous

MySQL GREATEST() Function

Next

MySQL LN() Function