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: Null values

Re: Null values

From: Jared Still <jkstill_at_cybcon.com>
Date: Mon, 11 Jun 2001 09:34:49 -0700
Message-ID: <F001.00324353.20010611080624@fatcity.com>

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, Roland.Skoldblom_at_ica.se 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: jkstill_at_cybcon.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 Mon Jun 11 2001 - 11:34:49 CDT

Original text of this message

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