Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Conversion of a varchar2 to a number
OK, why would your user want to do a
to_number() on a phone number?
Jared
On Wed, 13 Dec 2000, David Turner wrote:
> I have a user that has a phone number field that is stored as
> a varchar2 and some of the data actually has letters in it. When
> he tries to do a TO_NUMBER it fails of course on the records that
> have letters in them.
>
> To perform the conversion I thought using a cursor and handling the
> exceptions would work, but wanted to see if other people had a better
> way of doing this.
>
> Thanks, Dave Turner
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: David Turner
> INET: turner_at_elvis.mu.org
>
> 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).
>
Jared Still
Certified Oracle DBA and Part Time Perl Evangelist ;)
jkstill_at_teleport.com
Received on Wed Dec 13 2000 - 22:33:19 CST
![]() |
![]() |