如何检查天气the是否在数据库中显示? [英] how to check weather the sting is presented in database or not?

查看:63
本文介绍了如何检查天气the是否在数据库中显示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好..我正在做一个小项目,准备学生注册和登录表格..为此,我要限制数据库中已经存在的用户名.有人可以帮我吗?

在此先感谢...

Hi all.. am doing a small project for doing the student registration and login form.. for this i have to do is, to restrict the username which is already in the database. can anyone please help me in doing this.

thanks in advance...

推荐答案

使用此方法:

use this method:

public Cursor query(....)


请参阅此示例
http://www.higherpass.com/Android/Tutorials/Accessing-Data -With-Android-Cursors/2/ [
see this example
http://www.higherpass.com/Android/Tutorials/Accessing-Data-With-Android-Cursors/2/[^]


这篇关于如何检查天气the是否在数据库中显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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