Syntax\n------\n\nLEAST(value1,value2,...)\n\nDescription\n-----------\n\nWith two or more arguments, returns the smallest (minimum-valued) argument. The arguments are compared using the following rules:\n\n If the return value is used in an INTEGER context or all arguments are integer-valued, they are compared as integers.\n If the return value is used in a REAL context or all arguments are real-valued, they are compared as reals.\n If any argument is a case-sensitive string, the arguments are compared as case-sensitive strings.\n In all other cases, the arguments are compared as case-insensitive strings.\n\nLEAST() returns NULL if any argument is NULL.\n\nExamples\n--------\n\nSELECT LEAST(2,0);\n+------------+\n| LEAST(2,0) |\n+------------+\n|          0 |\n+------------+\n\nURL: https://mariadb.com/docs/server/reference/sql-structure/operators/comparison-operators/least