IT. Expert System.

MYSQL

LEAST()


Description

The LEAST( ) function returns the smaller argument with the mentioned two arguments. The arguments are compared in the following rules:

  • If any argument is NULL, then the function returns NULL. No more comparison is required.
  • If the argument is integer, then all the return value is integer.
  • If the argument is real, then the return value is real.
  • If the argument comprises of strings and numbers, then the return value is numbers.
  • If the argument is non-binary string, then the return value is non-binary string.

This function has the form:

SELECT LEAST(value1, value2, ...)
Parameter Description
value1, value2 Numbers

Return Value

The smaller argument with the mentioned two arguments.

Examples

The following example shows the basic use of this function:

mysql> SELECT LEAST(2,0);
-> 0
mysql> SELECT LEAST(34.0,3.0,5.0,767.0);
-> 3.0
mysql> SELECT LEAST('B','A','C');
-> 'A'


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 1303 / 158858366. Delta: 0.02607 с