Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem converting varchar2 to number

678888Jan 8 2009 — edited Jan 8 2009
I am having difficulty converting strings to numbers. On my Oracle 9.2 server, the following gives me an ORA-1722 error:
SELECT TO_NUMBER('1.2') FROM DUAL
Apparently this is because my server is setup to use the greek number format (comma instead of decimal point) and replacing '1.2' above with '1,2' will work correctly.
Is there some culture-independent way for me to convert strings with decimal points to the number type, so that my application will not have to depend on the regional settings of the server?

Thank you.
This post has been answered by Frank Kulash on Jan 8 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 5 2009
Added on Jan 8 2009
2 comments
2,224 views