CSV to SQL UPSERT
Generate SQL UPSERTs from CSV
Generate upsert statements from CSV for PostgreSQL (INSERT ... ON CONFLICT), MySQL/MariaDB (INSERT ... ON DUPLICATE KEY UPDATE), or Microsoft SQL Server (MERGE ... WHEN MATCHED). Choose conflict target columns, choose which columns to update on conflict, and review the output before running. Composite conflict targets are supported.
Example output
INSERT INTO customers ("customer_id", "email", "status")
VALUES (123, 'ada@example.com', 'active')
ON CONFLICT ("customer_id")
DO UPDATE SET
"email" = EXCLUDED."email",
"status" = EXCLUDED."status";