Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: formating output

Re: formating output

From: Tom Grenier <tom_at_sqlman.com>
Date: Wed, 20 Feb 2002 21:03:02 -0800
Message-ID: <3C747F86.52ECCA21@sqlman.com>


An ugly answer, but you can do:

select col1 || ',' || col2 || ',' || col3 || ',' from tab;

Also use 'set trimspool' if you are spooling the results to a file and don't want all the trailing spaces.

Tom

ed zappulla wrote:

> anyone know how to eliminate the lining up of columns from sqlplus?
> 8.1.6. i want a csv output and i get a lot of xtra white space before
> and after the commas set tab off;
> set trim on;
> set linesize 9999;
> set colsep ',';
> set newpage none;
> set heading off;
> set wrap off;
> set feedback off;
> set pagesize 0;select * from tab;
Received on Wed Feb 20 2002 - 23:03:02 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US