Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Conversion from string to number with a default value
Hi,
Does anyone know an sql function to convert a string to a number and if the
string is not a number then converting to a default numeric value in Oracle.
For example, something like to_number('234',-1) = 234 and
to_number('34a',-1) = -1.
Thanks in advance,
Chandresh
Received on Fri May 28 2004 - 12:57:08 CDT