HOW TO PRINT
*
**
***
****
*****
BY USING SQL QUERY? (MAY BE USING SCRIPT)
Answer Posted / bijaylaxmi
declare
m number:=5;
n varchar2(30);
begin
for i in 1..m
loop
for j in 1..i
loop
n:=n||'*';
end loop;
dbms_output.put_line(n);
n:=null;
end loop;
end;
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the difference between Union and Union all. Which is faster.
What is equi join in sql?
Is sql scripting language?
What are system versioned tables?
how to shutdown mysql server? : Sql dba
What is a procedure in pl sql?
how to convert character strings to dates? : Sql dba
What is function and procedure?
How do you create a db file?
What are different functions in sql?
What is varchar data type in sql?
Is a table valued function object?
what are the different functions in sorting an array? : Sql dba
Can we call procedure in select statement?
How to pipe multiline string to isql?