Good morning everybody
I'm new in toad and I need an advice please.
I'm executing this query using the "run as script" command to export data in a text file.
But when I'm looking inside the text file generated, the data is there but there is no column headers.
Please would you help to correct de query so that the column headers appear in the text file generated.
Thanks to you.
***TOP OF THE QUERY ***
set pagesize 0
set trimspool on
set headsep on
set echo off
set embedded off
set feedback off
set heading on
set linesize 2000
spool D:\BK210.txt
Select d.cli,';', d.age,';', d.ncp,';', d.dev
from prod.bkhis d
group by d.cli, d.age, d.ncp, d.dev
order by d.cli asc
;
spool off
***END OF THE QUERY ***