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 many clustered indexes can you have?
What is compound trigger?
How do you write an inner join query?
How do I get sql certification?
How do I find duplicates in sql?
What is clustered index in sql?
What are the different set operators available in sql?
What are types of exception?
What are the different types of constraints?
what are all the different types of indexes? : Sql dba
What is Collation Sensitivity ? What are the various type ?
What is rtm in testing?
what are different types of collation sensitivity? : Sql dba
What is the use of desc in sql?
How do you determine the current isolation level? : Transact sql