Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
返回给定数字的符号(正号或负号)。
SIGN( numeric-expression )
numeric-expression 返回符号的数字。numeric-expression 的类型可能为 INTEGER、DOUBLE 或 NUMERIC。
SMALLINT
对于负数,SIGN 函数返回 -1。
对于零,SIGN 函数返回 0。
对于正数,SIGN 函数返回 1。
以下语句返回值 -1
SELECT SIGN( -550 );