hi all,
I'm not sure whether should i post my question here.
I'm doing a program that have 2 modes, which are live database and offline database. Live database is from server and offline database is in local database(as a back up-when server down, it still can work without interrupt). i got 3 PCs and 1 server, so if there are 2 pc's connection encounter problem and need to run offline database, then how am i going to make sure the data is consistent after the connection is okay?
for example, if i have a table with an auto increment column as the primary key, and what if the 2 of PCs need to run in offline database, and after connection is up then how can i get a consistent data(as currently after the connection is up, then the 2 offline databases restore the data back to live database then they may have duplicated data happened).
Anyone can help on this? or any suggestion?
