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: Creating an ASCII file from an Oracle table

Re: Creating an ASCII file from an Oracle table

From: GHouck <2hksys_at_teleport.com>
Date: 1997/11/20
Message-ID: <3474FA91.4DC1@teleport.com>#1/1

Lothar Armbruester wrote:
>
> RobW95 wrote:
> >My new company has asked me to create a flat file from an Oracle table (don't
> >ask me why). I don't recall any easy way to do this, such as a utility. Does
> >anybody have any suggestions? Thanks. Rob
>

In addition, if you want to output a comma-delimited file, you could also:

set pagesize 0
set linesize <maxwidthyouwant>
set head off
set termout off
set feedback off
set timing off
spool <yourfile>
select COL1||','||COL2||','||COL3 ... ||','||COLn from mytable ... spool off
exit

Yours,

Geoff Houck
systems hk
2hksys_at_teleport.com [Delete the "2" to respond] http://www.teleport.com/~hksys Received on Thu Nov 20 1997 - 00:00:00 CST

Original text of this message

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