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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Conversion of datatype

Re: Conversion of datatype

From: <Chaim.Katz_at_Completions.Bombardier.com>
Date: Tue, 27 Feb 2001 08:33:52 -0800
Message-ID: <F001.002BE6E7.20010227082027@fatcity.com>

Is this what you're looking for?

w_nseqline := lpad(to_char(w_seqline),6,'0');

Ch

"Eriovaldo do Carmo Andrietta" <eca_at_widesoft.com.br> on 02/27/2001 10:05:27 AM

Please respond to ORACLE-L_at_fatcity.com

To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> cc: (bcc: Chaim Katz/Completions/Bombardier)

I have this sentence in a pl/sql block :

         w_nseqline              := w_seqline;
         select lpad(to_char(w_seqline, '00009'), '0')  into w_nseqline from
dual;
         w_nseqline              := w_seqline;

w_nseqline is char(6);
w_seqline is number(6).

    I want the result '00001' but the code above is giving me '1 '

    How can I solve it ?

Thanks

Eriovaldo do Carmo Andrietta
ICQ #102604225

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Eriovaldo do Carmo Andrietta
  INET: eca_at_widesoft.com.br

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L

(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: Chaim.Katz_at_Completions.Bombardier.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
Received on Tue Feb 27 2001 - 10:33:52 CST

Original text of this message

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