Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.tools -> Re: dropping a csv file from an oracle table for reporting purposes
"Nicholas Mudie" <nmudie_at_chello.com> wrote in <nCcI6.36074$Kt6.7357295_at_amsnews03.chello.com>:
>Hi everyone,
>
>I'm trying to drop a csv file from an oracle table to do some reporting
>via perl.
>
>How would I drop a csv file using Oracle or pl sql??
>
>Thanks,
>Nicholas Mudie
>Apps Engineer
>CHELLO
In SQLPLus try setting "spool=on" then running a select statement seperated
by the "||,||".eg:
spool c:\TMODELEINITFPP20000423.txt
select
VERSION_NUMBER||','||RECORD_TYPE||','||EMPLOYEE_ID_PREFIX||','||EMPLOYEE_ID
||','||FIRST_NAME||','||LAST_NAME
from SYS.FPP_DATA_FOR_FECP;
spool off
hth,
Neil. Received on Thu May 03 2001 - 08:49:03 CDT