阅读392 返回首页    go 阿里云 go 技术社区[云栖]


Oracle Least()函数

LEAST

The LEAST function returns the smallest expression in a list of expressions. All expressions after the first are implicitly 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
原文地址:点击打开链接

最后更新:2017-04-03 20:19:22

  上一篇:go C# 打开指定路径下文件
  下一篇:go Java中反射性能测试