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 ?

Answers were Sorted based on User's Feedback



declare lowerl number:= 1; upperl number:= 3; num varchar2(10); begin for i into l..

Answer / 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

declare lowerl number:= 1; upperl number:= 3; num varchar2(10); begin for i into l..

Answer / guest

result will be 111

Is This Answer Correct ?    6 Yes 0 No

declare lowerl number:= 1; upperl number:= 3; num varchar2(10); begin for i into l..

Answer / kotesh

result is 11111

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More SQL PLSQL Interview Questions

What are the types of dbms?

0 Answers  


How can I get the number of records affected by a stored procedure?

0 Answers  


What is rename command in sql?

0 Answers  


Is left join inner or outer?

0 Answers  


what are the types of subquery? : Sql dba

0 Answers  






Explain the working of primary key?

0 Answers  


What is set serveroutput on in pl sql?

0 Answers  


What is cursor status?

0 Answers  


How to test for null values?

0 Answers  


Does sql backup shrink transaction log?

0 Answers  


How do I make my sql query run faster?

0 Answers  


How are multiple column = value pairs delimited in the SET clause of an UPDATE statement? 1. With commas (SET price = 0, status = 'I') 2. With parentheses (SET (price = 0) (status = 'I')) 3. With double-pipes (SET price = 0 || status = 'I') 4. With square-brackets (SET [price = 0] [status = 'I'] 5. With single or multiple spaces (SET price = 0 status = 'I')

2 Answers  


Categories