As the title say, i have table food with field food_id(PK) and food_name. I already have this data on table
food_id|food_name
-----------------
0000001|food1
0000002|food2
0000003|food3
and on my csv
0000001|apple
0000004|banana
0000005|grape
this is my query if there is no duplicate PK
copy foodfrom 'd:\testingfood.csv' delimiter '|' csv
but i want to update the food1 to apple to apple and insert 0000004|banana and 0000005|grape?
Is it possible?