not executed inside plsql code
sunny, February 24, 2021 - 9:19 am UTC
following is a script when i run this script not executed output of " 1 ".
my variable is also assign with 'N' value and '121212' is not null string so what is wrong why if condition becomes false
declare
v_str char(2);
begin
v_str := 'N';
if '121212' is not null and nvl(v_str, 'N') = 'N' then
dbms_output.put_line('1 ' || v_str);
end if;
dbms_output.put_line('2 ' || v_str);
end;
February 25, 2021 - 5:32 am UTC
CHAR(2) means your string is:
N-space
not just
N