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 sql analyzer?
How to raise user-defined exception with custom sqlerrm ?
What is the use of desc in sql?
What is PL/SQL Records?
Can procedure in package be overloaded?
How many rows can sqlite handle?
Is stored procedure faster than query?
What do you mean by “trigger” in sql?
Can you selectively load only those records that you need? : aql loader
what are the authentication modes in sql server? How can it be changed? : Sql dba
Can we call procedure in select statement?
How to write pl sql program in mysql command prompt?
What is interval partition?
What does closing a cursor do?
What are joins in sql?