| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: Convert Oracle data to EXCEL
Hi Amy.
Your easiest options are:
To make a CSV (option 3) for the following table...
ATABLE
COL_A DATE COL_B VARCHAR2(10) COL_C NUMBER(5)
...you could use the following script in SQL*Plus...
------------------------cut--------------------------
set linesize 32767
set trimspool on
set termout off
set pagesize 0
spool atable.csv
select COL_A||','||COL_B||','||COL_C
from atable;
spool off
------------------------cut--------------------------
To create the above file dynamically for multiple tables, I have written a PL/SQL script. Please let me know if you'd like this (I can email it if so).
HTH, Dave Henderson.
Sent via Deja.com
http://www.deja.com/
Received on Thu Dec 14 2000 - 03:28:14 CST
![]() |
![]() |