0

i have two tables table_1 in database_1 and table_a in database_A. from different programs. they contain 60% the same columns. 40% is different. the columns are sorted differently. I would like to to edit only one of them an update the other automatically. Any idea on how to? Thank you in advance. With kind regards Jo Pi

MySQL sql

23rd Jun 2016, 3:51 PM
Jo Pi
3 Réponses
+ 2
use triggers. maybe a database link is needed
23rd Jun 2016, 8:00 PM
Andreas Beyer
Andreas Beyer - avatar
0
y dont u link the database and compare
5th Jul 2016, 10:59 AM
Manikar
Manikar - avatar
- 1
You can use database mirroring for automatic updation of data, but both the dB should have same schema. In your case you need to write custom code to write the data to second database. Otherwise you can send the data to a Message Queue and it will poll the data to both the dBs.
23rd Jun 2016, 5:17 PM
Tijo Joseph
Tijo Joseph - avatar