同步与SQLite数据库,反之亦然远程数据库(MySQL的) [英] sync remote database (mysql) with sqlite database and vice versa
本文介绍了同步与SQLite数据库,反之亦然远程数据库(MySQL的)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的Android应用我需要同步远程数据库(MySQL的)SQLite数据库,反之亦然......
这个概念是什么时候启动的应用程序应该从远程数据库同步数据库..当我执行某些操作的数据应该保存到sqlite的,然后将其同步到远程数据库一样。
请指导如何执行此任务。
在此先感谢....
解决方案
- 请您所有的语句表
- 通过HTTP将其发送到服务器
- 在服务器上执行的语句有(确保没有重复给予语句序列号)
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....
解决方案
- Log all your statements in a table
- Send them to the server via http
- Execute statements there on the server (ensure that there is no duplication by giving statements a serial no)
这篇关于同步与SQLite数据库,反之亦然远程数据库(MySQL的)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文