Return the smallest value of the list of arguments:
SELECT LEAST(3, 12, 34, 8, 25);
Try it Yourself »
The LEAST() function returns the smallest value of the list of arguments.
Note: See also the GREATEST() function.
LEAST(
arg1,
arg2,
arg3, ...)
Parameter | Description |
---|---|
arg1, arg2, arg3, ... | Required. The list of arguments to be evaluated |
Works in: | From MySQL 4.0 |
---|
Return the smallest value of the list of arguments:
SELECT LEAST("w3Schools.com", "microsoft.com", "apple.com");
Try it Yourself »
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!