|
|
Re: number to char convertion [message #629244 is a reply to message #629242] |
Fri, 05 December 2014 00:42 |
Lalit Kumar B
Messages: 3174 Registered: May 2013 Location: World Wide on the Web
|
Senior Member |
|
|
You can set the DECIMAL and GROUP separator to get the desired output. And use TO_CHAR as already suggested by BlackSwan.
SQL> alter session set nls_numeric_characters='.,';
Session altered.
SQL> select to_char(259786.09, '9G99G999D99') num from dual
2 /
NUM
------------
2,59,786.09
SQL>
where,
G = Group separator
D = Decimal separator
you can also check the NLS_TERRITORY for the same.
Regards,
Lalit
|
|
|
|
|
|
|
|
|