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 / sdp

The message() function has not been declared in the block.
If it would have been declared then answer would be 'ELSE'

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what happens if you no create privilege in a database? : Sql dba

529


What are the ways on commenting in a pl/sql code?

511


How do you use a while loop in pl sql?

534


Are views faster than queries?

539


Can we insert in view in sql?

562






What are the benefits of pl/sql packages?

541


Explain the working of foreign key?

542


How do I view a view in sql?

504


what are myisam tables? : Sql dba

548


what is a table in a database ? : Sql dba

540


How to display the records between two range in Oracle SQL Plus?

636


Explain how you can copy a file to file content and file to pl/sql table in advance pl/sql?

545


How many databases can sql express handle?

530


What is dml statement?

515


Mention what plvcmt and plvrb does in pl/sql?

636