Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> exception free to_number() subsitute?

exception free to_number() subsitute?

From: Allard Siemelink <aj_at_knoware.nl>
Date: 1997/09/11
Message-ID: <aj.32.0009BCEC@knoware.nl>#1/1

Within a select which returns multiple rows, I need to do a conversion from a varchar2 field to a number. However, it is essential that the select will not break when the varchar2 happens to *not* contain a valid number. Basically, what I need is a to_number() substitute that will return a NULL when the string cannot be converted. Also, it needs to be *fast*.

Any suggestions? (short of writing a dedicated function that will parse the varchar2 field character by character)

TIA, -Allard Received on Thu Sep 11 1997 - 00:00:00 CDT

Original text of this message

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