Answer the question
In order to leave comments, you need to log in
Restore one column from a backup
Hey!
There is a table like
id name email
there is a backup,
you need to restore the email table based on id, without touching the name.
really?
Answer the question
In order to leave comments, you need to log in
And in the forehead to restore the table next to the original one and carry out the necessary manipulations?
CREATE TABLE final SELECT t1.id, t1.name, t2.email FROM orig t1 JOIN backup t2 ON t1.id=t2.id
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question