![]() |
|||
|
![]() |
![]() |
|
FULL A - Z Oracle Function Library (formerly named "Morgan's Library")
![]() 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 | Search | Code Library | Sponsors | Privacy | Terms of Use | Contact Us | © 2003 - 2025 psoug.org |