您当前的位置: 首页 >  oracle

衣舞晨风

暂无认证

  • 1浏览

    0关注

    1156博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Oracle Least()函数

衣舞晨风 发布时间:2014-03-05 14:28:57 ,浏览量:1

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
原文地址:点击打开链接
关注
打赏
1647422595
查看更多评论
立即登录/注册

微信扫码登录

0.4218s