Created
November 11, 2019 13:44
-
-
Save aykononov/c2924f47be147379311222f438bc79fd to your computer and use it in GitHub Desktop.
Проверка на NULL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT DECODE( NULL | |
, 1 | |
, 'ONE' | |
, NULL | |
, 'EMPTY' -- это условие будет истинным | |
, 'DEFAULT' | |
) dcd | |
FROM dual; | |
------------------------ | |
ОТВЕТ: EMPTY |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment