Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: to_number question
It will also fail in the select:
19:00:40 ora92.scott> select * from lee;
C1
21 rows selected.
19:00:51 ora92.scott> col n1 for 999,999,999,999,999,999 19:01:35 ora92.scott> select to_number(c1) n1 from lee;
N1 ------------------------ 459,100,154,152,407 1,672,324,589,227 75,534,921,326,846 895,924,377,396,152 619,950,297,203,501 890,345,901,043,545 519,381,709,242,400 404,986,490,556,978 741,360,347,483,576 706,947,665,719,106 702,244,196,248,142 364,997,585,414,739 375,588,978,751,301 500,404,215,742,764 220,236,779,017,578
At 06:38 PM 7/14/2004, you wrote:
> > -----Original Message-----
> > Almost certainly somewhere in your column you have at least
> > one value that fails to convert to a number.
>
>I'm inclined to agree because the following works:
>to_number(translate(nbr_cc_no_high,'0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcd
>efghijklmnopqrstuvwxyz ','0123456789'))
>
>Some creator of data around here needs to be slapped.
>
>You still have to wonder why it isn't a problem in the SELECT part; but IS a
>problem in WHERE part.
>
>----------------------------------------------------------------
>Please see the official ORACLE-L FAQ: http://www.orafaq.com
>----------------------------------------------------------------
>To unsubscribe send email to: oracle-l-request_at_freelists.org
>put 'unsubscribe' in the subject line.
>--
>Archives are at http://www.freelists.org/archives/oracle-l/
>FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
>-----------------------------------------------------------------
Regards
Wolfgang Breitling
Centrex Consulting Corporation
www.centrexcc.com
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Wed Jul 14 2004 - 20:00:28 CDT
![]() |
![]() |