Oracle greatest函数

格式:

greatest( expr1, expr2, ... expr_n )

expr1, expr2, . expr_n 可以值也可以是函数.

函数功能:

  取得值最大值。


影响版本:

Oracle 8i, Oracle 9i, Oracle 10g, Oracle 11g

例子:

greatest(2, 5, 12, 3) would return 12
greatest('2', '5', '12', '3') would return '5'
greatest('apples', 'oranges', 'bananas') would return 'oranges'
greatest('apples', 'applis', 'applas') would return 'applis'

你可能感兴趣的:(oracle)