Roland,

The 'nvl' function in the code you posted does handle null values,
converting nulls to ' 0' before turning them into a character 
via to_char.

You should actually remove the space in ' 0', as it is forcing
an implicit conversion back to a number for to_char.

Jared

On Monday 11 June 2001 01:45, [EMAIL PROTECTED] wrote:
> Hallo you DBA's:
>
> How can I modify in this script to make it handle also null values.  This
> script only handles 0-values. Hope anyone can help me with this.
>
> vOWNERSHIP_NO:= rpad(to_char(nvl(recCursor.OWNERSHIP_NO,' 0')),2,' ');
>
> Thanks in advance
>
> Roland Sköldblom
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Jared Still
  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