如何使用这个demo从数据库中获取数据?
我正在使用 这个示例在 amy android 应用程序中创建数据库。
但这里没有给出如何从数据库中获取数据。
我的字段如下:
_id
名称
地址
类型
现在我想显示数据库中的所有可用名称。
我知道我必须使用选择查询。但我不知道在哪里必须使用它。所以请任何伙伴可以帮助我们解决这个问题。
谢谢。
I am using this example to create the database in to amy android app.
But here it is not given that how to fetch the data from the database.
My fields are like:
_id
name
address
type
now i want to show the all available name from the database.
I know that i have to use Select query. but where i have to use it that i dont know. So please can anybudy help e for that.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这里有有关 Android 数据的精彩教程.本教程涵盖了数据库的各个方面。
Here's brilliant tutorial about android data.The tutorial covers all the aspects of database.
在
DataBaseHelper
中编写您的方法,如下所示Write your method in
DataBaseHelper
that will be like this您可以从我的电脑下载一个示例。这是链接。仅限今天。我还向您提供了其代码,如下所示。
you can download one sample example from my computer. This is link. It will be available for today only. I am also giving you its code as below.