Skip to content
Advertisement

SQL request from 2 different databases with same structure

I have 2 really similar databases, with exact same structure (one of them is a backup of the other so some values changed which is why they are similar but not the exact same).

So here is what I would like to do, taking value from database 2 and updating database 1 with it (so it will allow me later to backup some data from a certain user without having to do it all manually or to backup everyone)

I tried something like this but it didn’t work, both database are in a same server and “next to each others”, also names are different, so I wanted to know if what I try to do is possible or not

Advertisement

Answer

If table’s name is Test, then try this query for Update (instead of key, place column primary key of table) :

Or

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement