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 hibernate and its relation to sql?
How to create a menu in sqlplus or pl/sql?
Which software is used for pl sql programming?
Why primary key is required?
What are sql functions? Describe in brief different types of sql functions?
what is a materialized view? : Sql dba
What is cursor status?
what is 'mysqlcheck'? : Sql dba
What are sql queries used for?
What is varchar data type in sql?
What is index example?
Why is stored procedure faster than query?
Is it possible to create startup or shutdown trigger for on-schema?
What is nosql example?
What are local and global variables and their differences?