I have a string that is expressed like exemple '1.000,00'. I want to convert to a number to store it in database, the number field in the table have the pressission with 2 decimal. I have tried to use like this to convert to number, but raise an error.
SELECT TO_NUMBER(TO_CHAR('1.0000', '99G999G990D99')) FROM DUAL
but it cannot convert to number, when I use TO_CHAR with this maskare, it can be stored.
SELECT TO_CHAR('10000', '99G999G990D99') FROM DUAL
How can I convert the string '1.000,00' to number with 2 decimals in the table, some tips?
Thanks all!