I want to import my csv file to postgresql table. I have issue when csv don't have required number of columns. Below is my csv data, I don't have header in csv. I need to import 200+ csv files each have 500 000 records so almost 100 milion data:
1347121698001,1364113253001,en
1346453482000,1354904936000
1347121698001,1354904936000,ru
Schema:
create table TRIPLES(creation_timestamp bigint
, deletion_timestamp bigint
, language_code text);
CSV Import command:
copy public.TRIPLES(creation_timestamp, deletion_timestamp, language_code)
FROM E:/deletions.csv' DELIMITER ',' CSV;
Error i am getting:
ERROR: missing data for column "language_code"
CONTEXT: COPY TRIPLES, line 4337:
How i can skip that (or) that cell as null if possible?