Hi,
I am trying to load data from tables into a CSV file. I am able to do it but single table at a time. Is there a way I can import multiple tables using single procedure or script.
This is what I am doing
Table 1 :
set term off;
set heading off;
set linesize 400;
set feedback off;
spool ecashdesposittransaction_sep_04.csv;
SELECT
K.ECASHID ||','|| K.DEPOSITTRANSACTIONID
FROM
ECASHDEPOSITTRANSACTION K
spool off;
Table 2:
set term off;
set heading off;
set linesize 400;
set feedback off;
spool ecashouttran_sep_04.csv;
SELECT
N.ECASHID ||','|| N.CASHOUTTRANID
FROM
ECASHCASHOUTTRAN N
spool off;
and so on .......... executing one script after the other
Expecting some help !!!!
Thanks,
venu
I am trying to load data from tables into a CSV file. I am able to do it but single table at a time. Is there a way I can import multiple tables using single procedure or script.
This is what I am doing
Table 1 :
set term off;
set heading off;
set linesize 400;
set feedback off;
spool ecashdesposittransaction_sep_04.csv;
SELECT
K.ECASHID ||','|| K.DEPOSITTRANSACTIONID
FROM
ECASHDEPOSITTRANSACTION K
spool off;
Table 2:
set term off;
set heading off;
set linesize 400;
set feedback off;
spool ecashouttran_sep_04.csv;
SELECT
N.ECASHID ||','|| N.CASHOUTTRANID
FROM
ECASHCASHOUTTRAN N
spool off;
and so on .......... executing one script after the other
Expecting some help !!!!
Thanks,
venu