HOW TO PRINT
*
**
***
****
*****
BY USING SQL QUERY? (MAY BE USING SCRIPT)
Answer Posted / s m nadeem
Declare
type stars is table of varchar2(10);
v_star stars;
v_str varchar2(10);
Begin
select lpad('*', rownum, '*')
bulk collect
into v_star
from tab_star
where rownum < 6;
for i in 1 .. v_star.count loop
v_str := v_star(i);
dbms_output.put_line(v_str);
End loop;
End;
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do you write a subquery?
What is pl sql in dbms?
What is character functions?
how can I make a script that can be bi-language (supports english, german)? : Sql dba
What is sql mysql pl sql oracle?
What are the different ddl commands in sql?
What is the difference between a primary key and a clustered index?
What is sql dialect?
What is sql rowcount?
What is a left join?
What are the types of triggers in sql?
What is database migration?
What does the argument [or replace] do?
Is progress software supports to ( pl/sql )?
Why do we need databases?