Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (日本語) » Ultra Light データベース管理とリファレンス » Ultra Light SQL リファレンス » Ultra Light SQL 関数 » SQL 関数 (P ~ Z)

 

SIGN 関数 [数値]

数の符号を返します。

構文
SIGN( numeric-expression )
パラメータ
  • numeric-expression   符号が返される数。

戻り値

SMALL INT

備考

負の数を指定すると、SIGN 関数は -1 を返します。

0 を指定すると、SIGN 関数は 0 を返します。

正の数を指定すると、SIGN 関数は 1 を返します。

標準と互換性
  • SQL/2003   ベンダ拡張。

次の文は、値 -1 を返します。

SELECT SIGN( -550 );