In fact, there is a way to include the title in the file if you have Netezza version 7.2 or higher.
The includeheader option, but the Aginity Workbench does not seem to highlight the includeheader, as if it were an option (at least in my version: 4.8).
CREATE EXTERNAL TABLE '~\test.csv'
USING
(
DELIMITER ','
Y2BASE 2000
ENCODING 'internal'
REMOTESOURCE 'ODBC'
ESCAPECHAR '\'
/****THIS IS THE OPTION ****/
INCLUDEHEADER
)
AS
SELECT *
FROM TEST_TABLE;
You will notice that Aginity does not apply highlighting to the option, but it will execute and write the title to the first line.
source
share