The AskTOM team is taking a break over the holiday season, so we're not taking questions or responding to comments. Please have a happy and safe festive season and as always, thanks for being a member of the AskTOM community.
Thanks for the question, swadesh.
Asked: December 08, 2016 - 2:17 pm UTC
Last updated: December 08, 2016 - 3:00 pm UTC
Version: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
Viewed 10K+ times! This question is
create table t ( x number ); insert into t values (1234.56); alter session set NLS_NUMERIC_CHARACTERS = '.,'; select * from t; alter session set NLS_NUMERIC_CHARACTERS = ',.'; select * from t;
select to_char(x, '999G999D00') sep, to_char(x, '999990D00') no_sep from t; SEP NO_SEP ----------- ---------- 1.234,56 1234,56
Share and learn SQL and PL/SQL; free access to the latest version of Oracle Database!
Classes, workouts and quizzes on Oracle Database technologies. Expertise through exercise!