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
Where do we use pl sql?
What are the triggers associated with image items?
How to avoid using cursors?
What is cursor explain with example?
How do I filter in sql profiler?
define data blocks ? : Sql dba
How do you use collections in procedure to return the resultset?
what are the advantages of mysql in comparison to oracle? : Sql dba
What are types of exception?
What is the use of procedures?
What does the file extension accdb stand for?
What are tuples in sql?
tell us something about heap tables. : Sql dba
Which constraints we can use while creating database in sql?
What are the types of subqueries?