Copy from CSV file to a Integer Column
Posted: Mon Nov 26, 2012 3:43 pm
Hello All,
I have someting like this
Create Table Sample(
column 1 bigint,
column 2 varchar,
column 3 varchar)
Data is
, test1,test2 (note that first column is null)
Copy command gives me error saying that invalid value for column integer, my copy command is
copy schema.Sample from 'Table1.csv' delimiter ',' null as '' exceptions '/aim/pmmcdicsvfiles/exception.txt' ;
I have someting like this
Create Table Sample(
column 1 bigint,
column 2 varchar,
column 3 varchar)
Data is
, test1,test2 (note that first column is null)
Copy command gives me error saying that invalid value for column integer, my copy command is
copy schema.Sample from 'Table1.csv' delimiter ',' null as '' exceptions '/aim/pmmcdicsvfiles/exception.txt' ;