HOW TO PRINT
*
**
***
****
*****
BY USING SQL QUERY? (MAY BE USING SCRIPT)
Answer Posted / shrikant tyagi
HOW TO PRINT * ** *** **** ***** BY USING SQL QUERY? (MAY
BE USING SCRIPT)
this is using script;
declare
type a1 is table of varchar2(100);
a a1;
b varchar2(100);
begin
select lpad('*',rownum,'*') bulk collect into a from
lea_agreement_dtl where rownum < 5;
for i in 1..a.count
loop
b:=b||' '||a(i);
end loop;
dbms_output.put_line(b);
end;
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
How to return an array from java to pl/sql?
How to create a menu in sqlplus or pl/sql?
What is pl sql block in dbms?
how to create a new view in mysql? : Sql dba
What is a memo field?
what is a tablespace? : Sql dba
Why do we use sql constraints?
What is the left table in sql?
How do you update a sql procedure?
how many triggers are allowed in mysql table? : Sql dba
What is a unique constraint?
How do I run a sql script?
How you can copy a file to file content and file to pl/sql table in advance pl/sql?
Why is there a need for sqlcode and sqlerrm variables?
Does inner join return duplicate rows?