发表于: DB/ES | 作者: | 日期: 2009/8/13 06:08

sign函数语法:
sign(n)

sign函数说明:
取数字n的符号,大于0返回1,小于0返回-1,等于0返回0

示例:
select sign( 100 ),sign(- 100 ),sign( 0 ) from dual;

SIGN(100) SIGN(-100) SIGN(0)
———- ———- ———-
1 -1 0


暂时还没有用过,先收藏一下。

: https://blog.darkmi.com/2009/08/13/935.html

本文相关评论 - 1条评论都没有呢
Post a comment now » 本文目前不可评论

No comments yet.

Sorry, the comment form is closed at this time.