MySQL Forums
Forum List  »  Newbie

Re: import data from CSV, update duplicates, create new records
Posted by: Peter Brawley
Date: May 31, 2018 08:23AM

A two-step: import the CSV into an indexless temp table of the same structure as the target table, then Insert ... On Duplicate Key ... from the temp table into the target table.

Options: ReplyQuote


Subject
Written By
Posted
Re: import data from CSV, update duplicates, create new records
May 31, 2018 08:23AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.