We are using sqlplus to read data from oracle and write into csv, but in the report we observed that the decimal values are separated by comma(,) instead of point(.). we have built a query like below :
select
DATE_MONTH||
'|'||A||
'|'||B||
'|'||C||---decimal column
'|'||D||---decimal column
'|'||E||
'|'||F||
'|'||G||---decimal column
'|'||H||---decimal column
'|'||I||---decimal column
'|'||J||
'|'||K||
'|'||H||
'|'||'"'||REPLACE(L, '"', '\"' )|| '"'||
'|'||M||
'|'||'"' || REPLACE(N, '"', '\"' )|| '"'||
'|' ||O||
'|'||TO_DATE(sysdate, 'YYYY-MM-DD')||
'|'||INFO_IS_DELETED||
'|'||'"' || REPLACE(P, '"', '\"' )|| '"'
from xxxxxxx where ROWNUM<=1000;