Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Can TO_NUMBER Do This?
Against the repeated urging of the DBA (me), a developer
insisted on creating all the numeric columns of his new
appliction's tables as VARCHAR2. (Don't ask me why! I've
explained it to him several times to no avail.)
Problem
I know you can parenthesize values when doing a TO_CHAR like this:
select to_char(f1,'999D99PR') from test where f1=-123.45
TO_CHAR(
However, if this doesn't appear to work with the to_number function, at least in my case.
Any ideas how to convert at string like '(1,234.87)' to a numeric value?
-Ed