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
What are the subsets of sql?
What are the ddl commands?
What is sql indexing?
Why we use join in sql?
Can a composite key be null?
What is an invalid partition table?
what are the different tables present in mysql? : Sql dba
what is clause? : Sql dba
List out the acid properties and explain?
What is the use of <> sql?
What are sql data types?
what are date and time data types? : Sql dba
Can you have more than one key in a database?
Does pl/sql support create command?
Why we use cross join?