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

The answer will be "else"

declare
L1 number := null;
L2 number :=null;
begin
if L1=L2 then
dbms_output.put_line ('equal');
elsif L1<>L2 then
dbms_output.put_line ('not equal');
else
dbms_output.put_line ('else');
end if;
end;
/

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we use ddl commands in pl sql?

562


What is rank dense_rank and partition in sql?

539


How many types of indexes are there in sql?

537


Write a query to display the current date in sql?

519


what are the performance and scalability characteristics of mysql? : Sql dba

533






If the application is running very slow? At what points you need to go about the database in order to improve the performance?

568


How do I partition a table in sql?

543


Write the alter statement to enable all the triggers on the t.students table.

676


What is the order of sql select?

575


What is the difference between joins?

537


Can a varchar be a primary key?

538


What is trigger in pl sql?

562


Can we join same table in sql?

532


how many ways to get the current time? : Sql dba

530


Which type of cursor is used to execute the dml statement?

534