从远程数据库检索数据 [英] Retrieving data from a remote database

查看:218
本文介绍了从远程数据库检索数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以向我解释从远程数据库检索数据的过程吗?我理解如何解析数据从sqlite到iPhone应用程序,但远程数据库似乎更复杂。我试图做研究,但我很困惑Web服务,云和其他不熟悉的话。到目前为止,我收集,我需要使用JSON来将数据从数据库转换为显示在PHP页面上的相应格式?那么iPhone应用程序连接到该页面并检索数据?

could someone please explain to me the process of retrieving data from a remote database? I understand how to parse data from sqlite to an iPhone application however remote databases seem to be more complex. I tried to do research however i get confused about web services,clouds and other words that im not familiar with. So far i gathered that i need to use JSON to convert the data from the database into the appropriate format that is displayed on a php page? then the iPhone application connects to that page and retrieves the data?

有人能给我一个简短的解释(在这个例子中,什么数据库可以使用JSON?)我会非常感激(如果有人有任何教程/文章,这将是感激)。对不起,如果我完全错了,试图学习...

Would someone be able to give me a brief explanation (also what database can be used with JSON? in this instance)? would me much appreciated (also if someone has any tutorials/articles about this would be grateful). Sorry if im totally wrong, trying to learn...

推荐答案

有很多方法来构建一个系统,应用程序从运行数据库的远程系统检索数据。你有很多的选择,服务器运行什么,客户是什么...有一个技术涉及这个世界...

That are many ways to build a system where you have a client application that retrieves data from a "remote" system that runs a database. You have many many choices as to what the server runs, and what the client is... and there is a world of technologies involved in this...

一个这样的例子是LAMP(Linux,Apache, MySQL,PHP),您可以在此网站找到一个很好的教程。

One such example is LAMP (Linux, Apache, MySQL, PHP) and you can find a good tutorial at this site.

本教程涵盖了从设置系统到检索数据并通过网络传回数据所需的一切内容;它是一步一步,很容易跟随。唯一没有涉及的是JSON,但JSON到底是一种传递数据的格式,你可以很容易地学习它的基础知识与本教程

The tutorial covers everything you need, from setting up the systems, to retrieving the data and passing it back though the web; it's step by step and pretty easy to follow. The only thing that is not covered is JSON, but JSON in the end is just a format to pass data back and forth, and you can easily learn the basics about it with this tutorial.

最后,建议您看看如何构建获取JSON数据的iPhone应用。这将是您加入前两个教程的点。

Finally, I would suggest looking at how building an iPhone app getting JSON data. This would be the point where you join the two previous tutorials.

这篇关于从远程数据库检索数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆