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 を返します。
0 を指定すると、SIGN 関数は 0 を返します。
正の数を指定すると、SIGN 関数は 1 を返します。
SQL/2008 ベンダー拡張。
次の文は、値 -1 を返します。
SELECT SIGN( -550 );