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
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 |
How to download oracle sql developer?
What is difference between a PROCEDURE & FUNCTION ?
Why stored procedure is better than query?
can i use dbms_output.put_line in a function u are telling as return statement
What is cold data?
What is row_number () in sql?
Do triggers have restrictions on the usage of large datatypes, such as long and long raw?
What is error ora-12154: tns:could not resolve the connect identifier specified?
How do you truncate?
how can we destroy the session, how can we unset the variable of a session? : Sql dba
How many aggregate functions are available there in sql?
What is a primary key sql?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)