declare
lowerl number:= 1;
upperl number:= 3;
num varchar2(10);
begin
for i into lowerl..upperl
loop
num:=num||to_char(lowerl);
if i=3 then upperl:=5;
end loop;
message(num);
What will be the output ?

Answer Posted / anil kumar jampana

declare
lowerl number:= 1;
upperl number:= 3;
num varchar2(10);
begin
for i in lowerl..upperl
loop
num:=num||to_char(lowerl);
if i=3 then upperl:=5;
end if;
end loop;
message(num);
end;
some changes in the programme.......
it will result 111

Is This Answer Correct ?    13 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many subqueries can be nested in a statement?

508


What is auto increment in sql?

589


difference between anonymous blocks and sub-programs.

626


What are sql*plus environment variables?

559


What are the ddl commands?

539






what is a trigger? : Sql dba

580


What is sql catalog?

570


what are the differences among rownum, rank and dense_rank? : Sql dba

540


What is the use of sqldataadapter?

539


What is dbo in sql?

536


Explain the methods used to protect source code of pl/sql.

548


What is a sql instance vs database?

580


What is the importance of sqlcode and sqlerrm?

853


What is nested table in pl sql?

555


What are pl/sql cursors?

567