Oracle Least()函数
2014-03-05 14:28
302 查看
LEAST
The LEAST function returns the smallest expression in a list of expressions. All expressions after the first areimplicitly converted to the data type of the first expression before the comparison.
To retrieve the largest expression in a list of expressions, use GREATEST.
Return Value
The data type of the first expression.
Syntax
LEAST (expr [, expr]...)
Arguments
expr
An expression.
Examples
Example 17-38 Finding the Shortest Text Expressions
The following statement returns the shortest string.
SHOW LEAST('Harry','Harriot','Harold') Harry
Example 17-39 Finding the Smallest Numerical Expressions
The following statement selects the number with the smallest value.
SHOW LEAST (5, 3, 18) 3
原文地址:点击打开链接
相关文章推荐
- Oracle比较函数GREATEST和LEAST使用
- oracle中的greatest 函数和 least函数
- Oracle内建函数(greatest, least, to_single_byte)
- greatest/least vs. max/min内建oracle函数
- Oracle Least()函数
- Oracle内建函数(greatest, least, to_single_byte)
- Oracle内建函数(greatest, least, to_single_byte)
- Oracle内建函数(greatest, least, to_single_byte)
- 转:oracle over函数详解
- Oracle函数大全
- ORACLE日期时间函数大全(处理日期、字符、数字转换等函数用法)
- Oracle 函数大全(字符串函数,数学函数,日期函数,逻辑运算函数,其他函数)
- 自己编写 Oracle 分页函数
- Oracle函数列表速查
- oracle中创建函数
- oracle常用函数汇总——字符函数(可用于字面字符或数据库列)
- Oracle----函数
- Oracle多行转列函数
- oracle func_multi_like函数实现模糊匹配多个
- 一、Oracle分析函数入门