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
Does pdo prevent sql injection?
Can we use two order by clause in query?
What is the difference between inner join and outer join?
What is procedure function?
Which is better varchar or nvarchar?
What schema means?
Do we need to create index on primary key?
Can we insert in view in sql?
What are primary key and foreign key and how they work?
Why do we need cursor in pl sql?
Is mariadb a nosql database?
what is cursor. write example of it. What are the attributes of cursor.
what are the non-standard sql commands supported by 'mysql'? : Sql dba
What does inner join mean?
What is the most restrictive isolation level? : Transact sql