I have a batch script which runs a SQL*Plus command and I am spooling the output to a CSV file. All outputs have only one column "count". Is there a way to add text to the results?
"The_current_valueOf Query1" "Count1"
"The_current_valueOf Query2" "Count2"
Any help/advise will be greatly appreciated.
set colsep ,
set pagesize 0
set trimspool on
set headsep off
set Newpage none
spool D:\TRHMIBS\TRH\TRHStats.csv
select count(*) from host.ufm where insert_time between trunc(sysdate) and sysdate
/
spool D:\TRHMIBS\TRH\TRHStats.csv APPEND
select count(*) from host.amendment where insert_time between trunc(sysdate) and sysdate and msg_source = 'AUDIT'
/
spool D:\TRHMIBS\TRH\TRHStats.csv APPEND
select count(*) from host.ufm_amendment where insert_time between trunc(sysdate) and sysdate and msg_source = 'DAS' and ext_token is null
/
spool off;
exit;