adspace
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
If a cursor is open, how can we find in a pl/sql block?
Do we need to rebuild index after truncate?
what are the advantages of sql ? : Sql dba
Can we use distinct and group by together?
Is primary key always clustered index?
What is your daily office routine?
what is bcp? When does it used? : Sql dba
Can we rollback truncate?
what are all the common sql function? : Sql dba
how to use regular expression in pattern match conditions? : Sql dba
how to escape special characters in sql statements? : Sql dba
Is inner join faster than left join?
how many tables will create when we create table, what are they? : Sql dba
what is collation? : Sql dba
Does group by remove duplicates?