Issue with SPOOL and decimal datatypes [message #589270] |
Wed, 03 July 2013 22:57 |
|
eshwar401
Messages: 17 Registered: June 2013 Location: India
|
Junior Member |
|
|
set term off
set Linesize 32760
set pagesize 0
set echo off
set heading off
set feedback off
set verify off
set colsep '|'
set TRIMSPOOL ON
spool c:\Test.csv
select * from Test;
spool off
This is working fine but only issue is the database collation is in norweign so when i see the generated file the decimal datatype column has 100,20 instead of 100.20. the decimal number are returned with comma.
I am doing it in windows server 2003 on SQLPLUS. I heard there is command to set the NLS_LANG as American and generate the output with decimal place instead of comma.
How to do this?
I have do it in Windows as well as in unix.
Thanks,Eshwar.
|
|
|
|
|
|
|
|
|
|