Oracle8i SQL Reference
Release 2 (8.1.6)

A76989-01

Library

Product

Contents

Index

Prev Up Next

Functions, 83 of 121


SIGN

Syntax


Purpose

If n<0, SIGN returns -1. If n=0, the function returns 0. If n>0, SIGN returns 1.

Example

SELECT SIGN(-15) "Sign" FROM DUAL;

      Sign
----------
        -1

Prev Up Next
Oracle
Copyright © 1999 Oracle Corporation.

All Rights Reserved.

Library

Product

Contents

Index