Oracle9i SQL Reference Release 1 (9.0.1) Part Number A90125-01 |
|
Functions, 108 of 166
sign::=
sign
If n
<0, SIGN
returns -1. If n
=0, the function returns 0. If n
>0, SIGN
returns 1.
The following example indicates that the function's argument (-15) is <0:
SELECT SIGN(-15) "Sign" FROM DUAL; Sign ---------- -1
|
Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. |
|