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: To_Number

RE: To_Number

From: Bernard, Gilbert <Gilbert.Bernard_at_caissedesdepots.fr>
Date: Fri, 06 Dec 2002 02:03:47 -0800
Message-ID: <F001.00514280.20021206020347@fatcity.com>


Look at NLS_NUMERIC_CHARACTERS " ,. "

	-----Message d'origine-----
	De:	Jared Still [mailto:jkstill_at_cybcon.com]
	Date:	vendredi 6 décembre 2002 09:59
	À:	Multiple recipients of list ORACLE-L
	Objet:	Re: To_Number


	No, she isn't.

	On Thursday 05 December 2002 14:19, Fink, Dan wrote:

> Yes, yes you are.
>
> -----Original Message-----
> Sent: Thursday, December 05, 2002 2:50 PM
> To: Multiple recipients of list ORACLE-L
>
>
> Am I the only one wondering why an obviously numeric field
> (unit_cost???) is being stored as varchar?
>
> --- JApplewhite_at_austin.isd.tenet.edu wrote:
> > Laura,
> >
> > Are those really zeros in $34,000.05 or are they letter Os? If
so
> > use
> > Replace. (Beware of letter l being used instead of numeral 1 as
> > well.)
> >
> > Any leading or trailing spaces? If so use Trim(unit_cost).
> >
> > Just a couple of quick suggestions.
> >
> > Jack C. Applewhite
> > Database Administrator
> > Austin Independent School District
> > Austin, Texas
> > 512.414.9715 (wk)
> > 512.935.5929 (pager)
> > JApplewhite_at_austin.isd.tenet.edu
> >
> >
> >
> >
> >
> > "Burton, Laura
> >
> > L." To: Multiple
recipients
> > of list ORACLE-L
> > <BurtonL_at_prism <ORACLE-L_at_fatcity.com>
> >
> > plus.com> cc:
> >
> > Sent by: Subject: To_Number
> >
> > root_at_fatcity.c
> >
> > om
> >
> >
> >
> >
> >
> > 12/05/2002
> >
> > 01:24 PM
> >
> > Please respond
> >
> > to ORACLE-L
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > I have a table which contains a Unit_Cost varchar2(16) which
contains
> > $34,000.05. I can enter select
> > to_number('$34,990.08','$999,999,999.99')
> > from dual; and the results is 34990.08. However when I enter
select
> > to_number(unit_cost,'$999,999,999.99') from elas.qdr I get
ora-01722:
> > invalid number.
> >
> >
> > Is there any other way to do this? I am trying to add a
varchar2
> > field
> > that contains $ and commas. I thought the to_number function
would
> > convert
> > the data to a number field.
> >
> >
> > Thanks,
> >
> >
> > Laura
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > --
> > Please see the official ORACLE-L FAQ: http://www.orafaq.com
> > --
> > Author:
> > INET: JApplewhite_at_austin.isd.tenet.edu
> >
> > Fat City Network Services -- 858-538-5051
http://www.fatcity.com
> > San Diego, California -- Mailing list and web hosting
services
> >
---------------------------------------------------------------------
> > 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).
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
-- 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 http://www.fatcity.com San Diego, California -- Mailing list and web hosting
services         
	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: Bernard, Gilbert
  INET: Gilbert.Bernard_at_caissedesdepots.fr

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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 Fri Dec 06 2002 - 04:03:47 CST

Original text of this message

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