SQL * Plus 명령을 실행하는 일괄 처리 스크립트가 있으며 출력을 CSV 파일로 스풀링하고 있습니다. 모든 출력에는 하나의 열 "개수"만 있습니다. 결과에 텍스트를 추가하는 방법이 있습니까?sqlplus 및 스풀 옵션
"The_current_valueOf Query1" "Count1"
"The_current_valueOf Query2" "Count2"
어떤 도움이나 조언을 부탁드립니다.
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;