Default Avatar

naresh_way2

The Vertica Forum recently got a makeover! Let us know what you think by filling out this short, anonymous survey.

naresh_way2

I have set primary key in vertica table and I tried to copy data from csv into my table but it was not copying because the primary key field has duplicate ids how can skip that row and insert all other data into my table.I was doing like this.. testing=> create table vertical(id int primary key enabled,name varchar); CREATE TABLE testing=> copy vertical from '/home/naresh/Desktop/result.csv' parser fcsvparser(); ERROR 6745: Duplicate key values: 'id=3' -- violates constraint 'public.vertical.C_PRIMARY' teststing=> My csv is like this 1 abc 2 abcd 3 cba 4 adbc 5 bcd 6 rgukt 7 adbcc 3 erthgf How can i insert this csv without duplicates and Is there any possible to store that duplicated data in another file?

About

Username
naresh_way2
Joined
Visits
185
Last Active
Roles
Member
Points
3
Badges
0

Badges

Any minute now…

Activity

  • Not much happening here, yet.