MERGE
suggest changeIntroduction
MERGE (often called UPSERT for “update or insert”) inserts new rows or, if a row already exists, updates it. Some dialects also delete unmatched rows. The point is to do the whole set atomically. MySQL has no MERGE; it uses INSERT ... ON DUPLICATE KEY UPDATE.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents