Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Export data to an open format
On Sun, 22 Aug 1999 19:34:36 +0100, "Joćo Santos Jorge"
<lodging_expo98_at_ip.pt> wrote:
>It would be important to be able to generate files with information from
>Oracle tables to a more open format, say text files, for example.
One way that I've used for text data is to spool the results of a SQL*Plus query to a file. For example:
SET PAGESIZE 0
SPOOL SOME_FILE.TXT
SELECT a || ',' ||b from my_table;
You have to use concatenation to build up the output line exactly as you want it. This is not as versatile a solution as a SQL*Unloader would be.
Jonathan