You are on page 1of 1

Method 2. Generate the csv file from command line.

Here is a sample sql file I


used to generate the csv file.

set pause off


set echo off
set verify off
set heading off
set linesize 5000
set feedback off
set termout off
set term off spool FY11_276.csv
set colsep ','
set pagesize 0
select
'BOOK_MONTH_ID','BOOK_MONTH_CODE','BOOK_MONTH_ORDER','QUARTER_NUMBER','BOOK_MO
NTH_NUMBER','BOOK_MONTH_NAME','QUARTER_NAME', 'DEL_COL' from dual;
select
BOOK_MONTH_ID,BOOK_MONTH_CODE,BOOK_MONTH_ORDER,QUARTER_NUMBER,BOOK_MONTH_NUMBE
R,BOOK_MONTH_NAME,QUARTER_NAME, null from claire_sample.book_month;

spool off

You might also like