Error Of Importing Data From Csv File To Ibm Netezza Sql Database
I need to import a csv file (122 GB, all fields are integer or string) to a table on IBM netezza sql database through Aginity Netteza workbench. I have created the table with field
Solution 1:
This is a case of misleading error text, I think. If you are importing from a CSV then you should be using Text as the FORMAT. It looks as if it is defaulting to 'internal' which is not what you want. Try adding FORMAT 'text' to the USING section to explicitly state you are working with a text file.
INSERT INTO my_table
SELECT * FROM
EXTERNAL 'E:\\my_path\\my_file.csv'
USING
(
DELIMITER ','
LOGDIR 'C:\\my_log'
Y2BASE 2000
ENCODING 'internal'
SKIPROWS 1
REMOTESOURCE 'ODBC'
ESCAPECHAR '\'
FORMAT 'text'
)
Post a Comment for "Error Of Importing Data From Csv File To Ibm Netezza Sql Database"