Last active
August 29, 2015 13:56
-
-
Save sytkov/9130670 to your computer and use it in GitHub Desktop.
Oracle. Comparing string with 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
declare | |
v_string varchar2(4000) := ''; | |
begin | |
if v_string = '' then | |
raise_application_error(-20000, 'It''s not working!'); | |
else | |
raise_application_error(-20000, 'Hey, this is empty string!'); | |
end if; | |
end; | |
/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment