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
What is sql stand for?
What is rownum and rowid?
what are string data types? : Sql dba
What is microsoft t sql?
What are all the different normalizations?
Mention what are different methods to trace the pl/sql code?
Which are the different case manipulation functions in sql?
What are predefined functions in sql?
how to calculate expressions with sql statements? : Sql dba
Explain what is sql*plus?
What are sql commands?
how to use regular expression in pattern match conditions? : Sql dba
Can we use ddl commands in pl sql?
what are the drivers in mysql? : Sql dba
how to decrement dates by 1 in mysql? : Sql dba