且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

同步与SQLite数据库,反之亦然远程数据库(MySQL的)

更新时间:2022-10-19 17:55:57


  1. 请您所有的语句表

  2. 通过HTTP将其发送到服务器

  3. 在服务器上执行的语句有(确保没有重复给予语句序列号​​)

In my android app I need to sync SQLite database with remote database (mysql) and vice versa....

the concept is something like when application launches application should sync database from remote database.. when I perform some action data should save into sqlite and then sync it to remote database..

Please guide how to perform this task.

Thanks in advance....

  1. Log all your statements in a table
  2. Send them to the server via http
  3. Execute statements there on the server (ensure that there is no duplication by giving statements a serial no)