返回一个数字的符号。
SIGN( numeric-expression )
numeric-expression 要返回其符号的数字。
SMALL INT
对于负数,SIGN 函数返回 -1。
对于零,SIGN 函数返回 0。
对于正数,SIGN 函数返回 1。
SQL/2003 服务商扩充。
以下语句返回值 -1
SELECT SIGN( -550 ); |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |