declare
l1 number := null;
l2 number :=null;
begin
if l1=l2 then message('equal');
else
if l1<>l2 then message('not equal');
else
message('else');
end if;
end if;
end;
What will be the output ?

Answer Posted / ramesh

compilation error, because you should not use two times end
if;

Is This Answer Correct ?    3 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between nvl function, ifnull function, and isnull function?

597


Is hadoop a nosql?

579


How delete all records from table in sql?

556


What is a relationship and what are they?

582


What are the qualities of 2nf?

546






How do I sort a table in sql?

599


What are schema-level triggers?

585


What is sqlca in db2?

536


Why use stored procedures?

576


What is the most common sql injection tool?

547


What are the two types of exceptions.

637


What are the sql versions?

522


What is cascade in sql?

563


Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me

1561


Can unique keys be null?

488