A
A
ayurganov2012-03-29 05:19:11
MySQL
ayurganov, 2012-03-29 05:19:11

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

2 answer(s)
A
azverin, 2012-03-29
@azverin

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

R
rasa, 2012-03-29
@rasa

Same question on stackoverflow

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question