Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Stars printed in a single line

d29afb5d-e6b1-48f2-a249-ca6f6e83b262May 5 2015 — edited May 6 2015

So I found this syntax to print '*' in a pattern but I have to do mine so they are in a single line. I been playing with the code to no success. Here is an example of what I am looking for:

The result I am searching for :  **********************************

Here is the code that I been trying to reconstruct to reach my goal. Any help will be greatly appreciated.

set serveroutput on

set verfiy off

declare

    v varchar2(250);

    num number :=20 ;

begin

    for i in 1..num loop

      v := v || ' ' || '*';

dbms_output.put_line(v);

    end loop;

end;

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 3 2015
Added on May 5 2015
5 comments
1,008 views