Skip to content

Instantly share code, notes, and snippets.

@sytkov
Last active August 29, 2015 13:56
Show Gist options
  • Save sytkov/9130670 to your computer and use it in GitHub Desktop.
Save sytkov/9130670 to your computer and use it in GitHub Desktop.
Oracle. Comparing string with NULL
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