Re: Comma Delimited

From: Paul <paul_at_see.my.sig.com>
Date: Sat, 29 Jul 2006 00:10:03 +0100
Message-ID: <i66lc2h9b74l86e5357edjgoc0gob98d67_at_4ax.com>


Dave <dave_at_powerup.com.au> wrote:

> spool somefile.csv
> set colsep ','
> select somedata, somemore, etc
> from sometable_at_somedatabase
 

> and this extract will be comma separated.
> or you could use this
 

> spool somefile.csv
> select somedata, ',', somemore, ',' etc
> from sometable_at_somedatabase

I would recommend the use of | - the pipe symbol - the , (comma) is too common in day to day text fields. Excel can normally read these perfectly.

Paul...

> Dave

-- 

plinehan __at__ yahoo __dot__ __com__

XP Pro, SP 2, 

Oracle, 9.2.0.1.0 (Enterprise Ed.)
Interbase 6.0.1.0;

When asking database related questions, please give other posters 
some clues, like operating system, version of db being used and DDL.
The exact text and/or number of error messages is useful (!= "it didn't work!").
Thanks.
 
Furthermore, as a courtesy to those who spend 
time analysing and attempting to help, please 
do not top post.
Received on Sat Jul 29 2006 - 01:10:03 CEST

Original text of this message