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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Quick response needed for easy question

Re: Quick response needed for easy question

From: Timo Haatainen <Timo.Haatainen_at_tietogroup.com>
Date: 1997/12/18
Message-ID: <3498CC53.48FA@tietogroup.com>#1/1

Beth Beckman wrote:
>
> What's the easiest way to create a comma delimited file from data stored
> in Oracle? I want to be able to select specific rows from the tables
> and pipe them to a file. My customers are not currently interested in
> using embedded SQL in their programs, but want to extract data in comma
> delimited files for use in a variety of software tools (Excel, C/C++,
> S-Plus, etc). I'm using Oracle8 on Windows NT for the server.
>
> Thanks,
> Beth

Hi Beth,
maybe this query is what you're looking for:

Suppose there is a table: mytable (a number, b varchar2(30))

set heading off;
set verify off;
select a || ',' || b || ','
from mytable;

This will produce something like:

1,some text
2,another text   

-- 

Timo Haatainen
Carelcomp Forest Oy
Received on Thu Dec 18 1997 - 00:00:00 CST

Original text of this message

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