Skip to Main Content

Oracle Database Discussions

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!

set colsep

mohitanchliaAug 19 2008 — edited Aug 20 2008
I need to set the colsep for the data that I am unloading. I am getting spaces. Thsi is what I am doing.

sqlplus -s $CONN << EOF
set colsep ,;

set echo off newpage 0 space 0 pagesize 0 feed off head off trimspool on;

spool $OUT_FILE;

select id, name from filing f

spool off;

set echo on newpage 0 space 0 pagesize 0 feed on ;

drop table filing;
EOF

I am getting space separated output in output file even though I have set colsep ","

Also the columns are being printed on new line. How can I get output like
1|2
1|2
3|4

instead of getting every column on new line

Message was edited by:
user628400
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 17 2008
Added on Aug 19 2008
3 comments
9,262 views