![]() |
|||
|
|
|||
|
||||||||||||||||||||||||||||||
|
|
|
Looking for the original pages? (formerly called "Morgan's Library") You can find them here.
Term: NULLIF
Definition: NULLIF(arg1, arg2) where arg1 and arg2 are of the NUMBER datatype. Example Usage: The SQL example below raises a ZERO_DIVIDE exception as it foolishly tries to divide a number by zero. SQL> SELECT 12/0 FROM DUAL; The SQL example below handles the exception raised above by using the NULLIF function in the Divisor. SQL> SELECT 12/NULLIF(0,0) FROM DUAL; Related Links: |
| Home : Code Library : Sponsors : Privacy : Terms of Use : Contact Us | 242 users online © 2009 psoug.org |