HOW TO PRINT
*
**
***
****
*****
BY USING SQL QUERY? (MAY BE USING SCRIPT)
Answer Posted / shrikant tyagi in nucleus soft
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 | 0 No |
Post New Answer View All Answers
What is the difference between union and union all command?
What is delete command in sql?
how do you know if your mysql server is alive? : Sql dba
What is #table in sql?
How to display Row Number with Records in Oracle SQL Plus?
What is the maximum rows in csv?
what is the difference between mysql_fetch_object and mysql_fetch_array? : Sql dba
Can we declare a column having number data type and its scale is larger than pricesionex: column_name number(10,100),column_name numbaer(10,-84)
How will you distinguish a global variable with a local variable in pl/sql?
Can you do multiple joins in sql?
How to place comments in pl/sql?
What is loop in pl sql?
How much does sql certification cost?
What is mutating table error?
How do I create a sql script?