Tuesday, 2 August 2016

LEAST: Get leastelement from list of elements


mysql> SELECT LEAST('apples', 'applis', 'applas');
+-------------------------------------+
| LEAST('apples', 'applis', 'applas') |
+-------------------------------------+
| applas                              |
+-------------------------------------+
1 row in set (0.00 sec)

mysql> SELECT LEAST(2, 4, 32, 54, 321, 87, 98);
+----------------------------------+
| LEAST(2, 4, 32, 54, 321, 87, 98) |
+----------------------------------+
|                                2 |
+----------------------------------+
1 row in set (0.00 sec)
Previous                                                 Next                                                 Home

No comments:

Post a Comment