Purpose
If n<0, SIGN returns -1. If n=0, the function returns 0. If n>0, SIGN returns 1. Example
The following example indicates that the function's argument (-15) is <0: SELECT SIGN(-15) "Sign" FROM DUAL; Sign
----------
-1select sign(3) from dual;
结果1select sign(0) from dual;
结果0
If n<0, SIGN returns -1. If n=0, the function returns 0. If n>0, SIGN returns 1. Example
The following example indicates that the function's argument (-15) is <0: SELECT SIGN(-15) "Sign" FROM DUAL; Sign
----------
-1select sign(3) from dual;
结果1select sign(0) from dual;
结果0
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货