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 / subrahmanyam.k
Null is not a charcter,unapplicable and not space. we can't
applicable or compare to another. so the final output is "ELSE"
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How to avoid duplicate records in a query?
Will truncate release space?
Show the cursor attributes of pl/sql.
What is the importance of sqlcode and sqlerrm?
Explain scalar functions in sql?
What is AUTH_ID and AUTH_USER in pl/sql ?
What is sql constant?
Why is theta join required?
Enlist the characteristics of pl/sql?
Is left join faster than join?
what is a scheduled jobs or what is a scheduled tasks? : Sql dba
How do I view tables in mysql?
Can a key be both primary and foreign?
What is dcl in sql?
what are numeric data types? : Sql dba