SQL Server/T-SQL Tutorial/Math Functions/SIGN — различия между версиями

Материал из SQL эксперт
Перейти к: навигация, поиск
м (1 версия)
 
(нет различий)

Текущая версия на 13:24, 26 мая 2010

SIGN returns a -1 if the number is negative, +1 if the number is positive, or 0 if the number is 0.

   <source lang="sql">

4> SELECT SIGN(-23) 5> GO


        -1

(1 rows affected)</source>