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 meant by truncate in sql?
What is a dynamic query?
Does access use sql?
what are different types of keys in sql?
Can you join views in sql?
What is union, minus and interact commands?
how to show all tables with 'mysql'? : Sql dba
What are the possible values that can be stored in a boolean data field?
What is autocommit sql?
What is benefit of creating memory optimized table?
Can we use distinct and group by together?
what is sp_pkeys? : Transact sql
Define union, minus, union all, intersect ?
What is view explain with example?
How do you create a db file?