Skip to Main Content

SQL & PL/SQL

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!

sqlplus colsep tab

user5716448Feb 23 2018 — edited Feb 23 2018

Hi,

have 11.2.0.3

have sqlplus script with set colsep '     '

However, when look at resulting file has several tab characters after each column even though sql is select trim(cola), trim(colb)...   etc.

Want to produce tab-delimited text file

Trying other colsep e.g colsep '|' and looks like putting lots of extra spaces at end of column despite fact trimmed also tried ldtrim(rtrim) - not sure why this is - any thoughts?

Diodn't want to have to select and put concatenation character between each column in select.

Any reason wht multiple tab characters and hwo can we ensure only 1 tab between each column.

Thanks

'
This post has been answered by Frank Kulash on Feb 23 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 23 2018
Added on Feb 23 2018
6 comments
6,626 views