1. create global temporary table temp_employee
(col1 ..
like ordenary table creation in oracle
(you don't have to delete records : the table is empty at the start of each new session)
2. insert, update, delete statements are identical to normal tables in oracle
after a COMMIT however the temporary table is empty unless you define it as
create global temporary table temp_employee
on commit preserve rows
then the rows exists for the duration of the session
3/5 using sqlplus you can spool output
column current_date new_value current_date
select sysdate current_date from dual ; -- this fills variable &¤t_date
spool file_&¤t_date.csv
select col1 || ';' || col2 || ';' || etc from temp_employee;
spool off
the file is written on the machine sqlplus runs
you problaby need some other sqlplus setting to keep your csv free from information data
set verify off
set heading off
in a pl/sql-block you can use the utl_file package to write a file on the server the database is on
4) ?
6/7 search for pl/sql email on
www.experts-exchange.com if seen several questions been answered in the past