Skip to content

LEAST

  • value1: The first numeric or string value from which the function should calculate the least value.
  • value2: The second numeric or string value from which the function should calculate the least value.
  • …: This represents an optional series of additional numeric or string values. Each additional value is considered in the computation of the least value.
SELECT LEAST(34, 17, 68);
17

The LEAST function in MySQL returns the smallest of the given values. In the provided example, it compares 34, 17, and 68 and returns 17 since it is the smallest value among the three.