I am using a PostgreSQL database, after I created my table, I have to fill them with a CSV file. However, the CSV file is damaged and violates the primary key rule, so the database throws an error and I can’t fill the table. Any ideas how to tell the database to ignore duplicates when importing from CSV? Writing a script to remove them from a CSV file is not acceptable. Any workarounds are welcome. Thanks!:)
source
share