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
What is meant by temporal data?
What does inner join mean?
what is a trigger in mysql? : Sql dba
What are the various levels of constraints?
Can a key be both primary and foreign?
How can a pl sql block be executed?
What jobs use sql?
What does seeding a database mean?
how to use case expression? : Sql dba
How do I view an execution plan in sql?
What are the different sql languages?
how do you tune the slow running queries in oracle db , explain the methodology
How do I remove duplicates in two columns?
Is left join and outer join same?
What do you mean by dbms? What are its different types?