Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: dbms_output.put_line question

Re: dbms_output.put_line question

From: Darren Mallette <khs_rider_at_geocities.com>
Date: 1997/08/18
Message-ID: <33f85f19.174344125@207.93.1.8>#1/1

TICS28@"spam-off"email.mot.com (Alan Long) wrote:

>The line:
>
> dbms_output.put_line(' text string');
>
>produces output which omits the leading blanks. The only solution I have
>found is to include a leading period:
>
> dbms_output.put_line('. text string');
>
>This seems a bit dumb, uses up one column of output, and looks untidy. Is there
>a better way?

Why not try:

          dbms_output.put_line(lpad('text string', n, ' '));

where n is the number of spaces you want?

-Darren

Darren Mallette
www.geocities.com/HotSprings/7490 Received on Mon Aug 18 1997 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US