如何在一个数据库上工作多用户 [英] how to work multiusers on one database

查看:231
本文介绍了如何在一个数据库上工作多用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,





i我正在创建简单的Android应用程序,如学生注册。



假设我在移动设备上注册了三个学生数据。(插入数据)。



然后所有教师都可以看到学生列表。所有老师都有相同的应用程序安装。







谢谢。

hi there,


i am creating simple android apps like student registration.

suppose i registered three students data in mobile.(insert data).

then how all teachers can see student list. all teachers have same application install.



Thanks.

推荐答案

您应该通过PHP或.NET实现Web服务,您的Android将调用此Web服务,该服务将查询数据库并获取所有列表学生然后将数据返回到Android。 Android显示此列表
You should implement a web service by PHP or .NET, your Android will call this web service, the service will query the DB and get all the list student then return data to Android. The Android displays this list


您的Android应用程序在设备上,数据库必须位于远程网络服务器上,应用程序必须通过服务器端脚本(Web服务)远程联网服务器,它将代表应用程序与数据库进行交互。

从这个由6部分组成的教程中学习 Android,MySQL,PHP,& JSON 1 |远程数据库教程概述 [ ^ ]
Your Android app is on the device, the database must be on a remote networked server, the app must go through a server-side script (web service) on a remote networked server which will interact with the database on behalf on the app.
Learn from this 6-part tutorial Android, MySQL, PHP, & JSON 1 | Remote Databases Tutorial Overview[^]


这篇关于如何在一个数据库上工作多用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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