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
Why functions are used in sql?
What is bind reference and how can it be created?
What is character functions?
Is pl sql different from sql?
What is on delete set null?
what are the differences between char and varchar? : Sql dba
How to get each name only once from an employee table?
Are stored procedures compiled?
what is the use of set statement in tsql? : Transact sql
What is data type in sql?
What is java sql connection?
how are mysql timestamps seen to a user? : Sql dba
What is dense_rank in sql?
Is truncate ddl or dml?
How do I view tables in sql developer?