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

Re: dbms_output.put_line

From: Danny Wagenaar <danny.NOSPAM_at_NO.SPAM.duvel.fmv.ulg.ac.be>
Date: 1997/11/18
Message-ID: <64rq55$1q60@aix4.segi.ulg.ac.be>#1/1

In article <64r4e6$ir0$1_at_wyrm.its.uow.edu.au>, Phil Herring <revdoc_at_uow.edu.au> writes:
>Seriously, the leading spaces will be stripped off. You probably don't want
>this to happen. I usually precede output like this with some non-whitespace
>character to stop this from happening. For example:
>
>DBMS_OUTPUT.PUT_LINE('* col1 col2');
>DBMS_OUTPUT.PUT_LINE('* ' || lpad(to_char(col1),4)||lpad(to_char(col2),10));
>

Why not using

  DBMS_OUTPUT.PUT_LINE(CHR(8) || lpad(to_char(col1),4)...etc

With CHR(8) you don't get an extra character and you will see all your leading spaces.

De mazzel,
Danny Received on Tue Nov 18 1997 - 00:00:00 CST

Original text of this message

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