Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: export to ascii file
Hi Raul
In a SQL script file try the following SET commands (v7.2)
SET LINESIZE 999
SET HEAD OFF
SET FEEDBACK OFF
SET PAGESIZE 0
SET TRIMSPOOL ON (v.7.2)
SPOOL output_filename.LIS
/*
select statement goes here
*/
/
SPOOL OFF
EXIT
The output_file.LIS will contain ascii of 1 line per row from your select
statement. Nb. Assumes a max. linesize of 999 characters.
Help this helps
-- - Martyn Senior ORACLE Analyst Surrey, England. home: cavett_at_globalnet.co.uk Raul Sanchez <rsanchez_at_lingocd.com> wrote in article <333DC0E2.1FAB_at_lingocd.com>...Received on Sun Mar 30 1997 - 00:00:00 CST
> Hi,
>
> I would like to know how or where I might find information on how
> to export a table to an ascii file in ORACLE (for example, in SYBASE
> I would use the following:
>
> bcp databaseName..tableName out dataFile -c .....
>
> In order words, what is the equivalent to this statement above
> in ORACLE. Thanx for you kind help in advance.
>
> --Raul
>