远程数据库访问 [英] Remote Database access
问题描述
我真的是初学者,我在看很多不同的Android的书籍,我想了解如何开发自己的应用程序。
该应用程序我在心中将要访问远程数据库,以便写入和读取数据。我想问一下您怎么一般的做法是,最佳实践指教。
我想了解的数据库,因为我根本不知道这么小(只是如何使一些SQL查询和程序),我想关注我的学习走向一体化的Android
多谢了。
您需要写一个服务器端的服务,让您从您的Android设备操作数据。
有Android的直接连接到远程数据库中没有简单的方法。
您的解决方案应该是这样的:
机器人 - >服务器端 - 服务 - >数据库
数据库 - >服务器端 - 服务 - > ANDROID
有关您的服务器端服务,我会建议你使用写在你喜欢的任何语言的Web / HTTP服务器端的服务:使用Java,Python,ASP.NET(C#/ VB.NET),PHP,你的名字<。 / P>
I'm really a beginner, I'm reading many different Android books as I would like to learn how to develop my own app.
The app I've in mind is going to access to a remote database in order the write and read data. I would like to ask your advise about how this is usually done, best practices.
I want to learnt about databases as I actually know so little (just how to make some sql queries and procedures) and I would like to focus my learning towards Android integration.
Thanks a lot.
You need to write a server-side-service that will allow you to manipulate your data from your Android device.
There is no easy way of connecting Android DIRECTLY to a remote database.
You solution should be something like this:
ANDROID -> SERVER-SIDE-SERVICE -> DATABASE
DATABASE -> SERVER-SIDE-SERVICE -> ANDROID
For your SERVER-SIDE-SERVICE I would recommend you use any WEB/HTTP server side service written in your favorite language: Java, Python, ASP.NET (C#/VB.NET), PHP, you name it.
这篇关于远程数据库访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!