Hi there
can anyone tell me how I would add column headers for each of the fields to the report file created from this statement.
SET PAGESIZE 0
SET ECHO OFF
SET FEEDBACK OFF
SET LINESIZE 500
SEt TRIMSPOOL ON
SPOOL C:\SPOOLED_OUT.csv
SELECT '"'||ENET_ST_SALES.CUSTOMER_ID||'","'||ENET_ST_SALES.CUST_NO||'","'||
ENET_ST_SALES.SALES_ID||'","'||ENET_ST_SALES.PRODUCT_ID||'","'||ENET_ST_SALES.PRODUCT_NAME||'","'||
ENET_ST_SALES.LINE_SPEED||'"'
FROM DM_STAGE_USER.ENET_ST_SALES
WHERE ( (ENET_ST_SALES.PRODUCT_ID = 1899) AND (ENET_ST_SALES.LINE_SPEED IS
NULL) );
SPOOL OFF
can anyone tell me how I would add column headers for each of the fields to the report file created from this statement.
SET PAGESIZE 0
SET ECHO OFF
SET FEEDBACK OFF
SET LINESIZE 500
SEt TRIMSPOOL ON
SPOOL C:\SPOOLED_OUT.csv
SELECT '"'||ENET_ST_SALES.CUSTOMER_ID||'","'||ENET_ST_SALES.CUST_NO||'","'||
ENET_ST_SALES.SALES_ID||'","'||ENET_ST_SALES.PRODUCT_ID||'","'||ENET_ST_SALES.PRODUCT_NAME||'","'||
ENET_ST_SALES.LINE_SPEED||'"'
FROM DM_STAGE_USER.ENET_ST_SALES
WHERE ( (ENET_ST_SALES.PRODUCT_ID = 1899) AND (ENET_ST_SALES.LINE_SPEED IS
NULL) );
SPOOL OFF