vPOSTAL_NO:=lpad(replace(nvl(POSTAL_NO,'0'),' ',''),6,'0');

-----Original Message-----
Sent: 29 June 2001 13:30
To: Multiple recipients of list ORACLE-L


How can I change this pl/sql code. I want this to happen:

I have  for instance this

blank 5 5 blank 55 which means 55 55                                   (the
spaces ar ethe blanks.)

and I want it to be  like this:

005555

How can I change this code to let this happen:

vPOSTAL_NO:= lpad(nvl(recCursor.POSTAL_NO,'0'),7,'0');

Thanks to all who canhelp me.

Roland Sköldblom







-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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: Raj Gopalan
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

Reply via email to