连接的Andr​​oid为初学者SQL服务器 [英] Connecting Android with SQL server for beginners

查看:133
本文介绍了连接的Andr​​oid为初学者SQL服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是最好的方式和容易作出从远程SQL数据库到一个Android应用程序的连接?
我已经知道为MySQL,需要PHP的Web服务这是很容易make..but我不知道同样的线索,当谈到SQL server.Can有人建议我一个简单而安全的方法实现它?我需要迫切的一个项目,我想提出。
我们能否使用类似的PHP接口与SQL服务器进行通信?更重要的是如何?

What would be the best way and the easy one to make a connection from a remote SQL db to an android app? I already know that for mysql,php webservice is required which is easy to make..but i have no clue about the same when it comes to SQL server.Can anyone suggest me an easy and secure method to implement it?I require it urgently for a project i am making. Can we use similar php interface for communicating with SQL server? And more Importantly how?

推荐答案

是的,你可以使用相同的PHP。安装 本地SQL驱动程序 ,并使用PHP PDO的,写一个web服务,使您的Andr​​oid应用程序可以访问它。

Yes you can use the same PHP . Install a Native SQL Driver and make use of PHP PDO and write a webservice such that your Android App can access it.

这篇关于连接的Andr​​oid为初学者SQL服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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