// archives

on duplicate key update

This tag is associated with 1 posts

MySQL Insert On Duplicate Update Madness

you may need to perform an INSERT INTO SELECT FROM statement. Often when you do this, you’ll run into duplicate key errors. To overcome this, you’ll need to add ON DUPLICATE KEY UPDATE syntax to the end of your insert.