I want to export some data from a Netezza table into a csv file.
I want the file to have a header, be comma delimited, and have double quotes around all non numeric fields.
I'm using this syntax:
CREATE EXTERNAL TABLE 'F:\My Documents\noname.txt'
USING
(
IncludeHeader
DELIMITER ','
QUOTEDVALUE 'DOUBLE'
REQUIREQUOTES 'TRUE'
ENCODING 'internal'
REMOTESOURCE 'ODBC'
ESCAPECHAR '\'
NULLVALUE ''
)
AS
SELECT *
FROM MYTABLE
However the output shows no sign of double quotes. A sample output row looks like:
04_0001_17.jpg,fr50139,Y,32
Any ideas how to obtain something like this?
"04_0001_17.jpg","fr50139","Y",32