I have two tables and a set of primary key values. I want to replace all rows of the first table whose primary keys are in this set with the corresponding (having the same primary key) rows of the second table.
(The two tables have the same structure.)
How to do this with MySQL and PHPMyAdmin or (worse) command line?
You can assume that both tables have a row for every value of the primary keys in the set.