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 is primary key? : Sql dba
Does truncate release storage space?
Who is the owner of mysql database?
What is a unique key and primary key and foreign key?
What is cross join example?
What does where 1/2 mean in sql?
What are the dml statements?
How to run sql statements through the web interface?
what is the difference between $message and $$message? : Sql dba
Is delete faster than truncate?
What is pl sql script?
what is error ora-03113: end-of-file on communication channel?
How do I save the results of sql query in a file?
What are the two characteristics of a primary key?
how can I make a script that can be bi-language (supports english, german)? : Sql dba