Provide the minimum value from the list of arguments.
SELECT LEAST(3, 12, 34, 8, 25); |
The LEAST() function yields the smallest value from the list of arguments.
Note: Also consider the GREATEST() function.
LEAST(arg1, arg2, arg3, …) |
Parameter |
Description |
arg1, arg2, arg3, … |
Necessary: Specify the list of arguments for assessment. |
Works in: | From MySQL 4.0 |
Provide the minimum value from the given list of arguments.
SELECT LEAST(“w3Schools.com”, “microsoft.com”, “apple.com”); |