I have a table lets call it table1, and the data in two of the columns has been destroyed.
Fortunately I have an old backup of the table.
In the old backup the values for the two columns in question are correct but the rest of the columns are outdated so I can’t simply import the whole dump.
So instead I’ve imported it into another table which I’ll call table2. Each record has an id which is the same in both tables.
So basically I need a query that will go through each record in table1 and update column1 and column2 with the corresponding values from table2.
Original table is table1 and backup table is table2