Android SQLite 查看不到数据

发布于 2024-12-03 16:55:31 字数 281 浏览 3 评论 0原文

我正在开发一个 Android 应用程序。这个应用程序有一个 SQLite 数据库。该数据库有 6 个表和 5 个视图。如果我尝试从视图获取数据,则没有数据。在调试时,我查看了光标,列出了列,但没有列出数据。计数为-1。

我通过 DDMS 将数据库复制到我的 PC,然后在 SQLlite Manager(Firefox 插件)中打开它并启动相同的查询(从代码调试复制),并且有来自同一数据库的数据和相同的查询。

Android 设备 (HTC Sensation) 和模拟器的功能可能不足以运行如此困难的查询吗?

I'm developing a Android App. This App have an SQLite Database. This Database have 6 Tables an 5 Views. If I try to get Data from a View, there is no Data. At the Debugging I looked in the Cursor and the Columns are listed but not data. Count is -1.

The I copy the Database via DDMS to my PC and open it in SQLlite Manager(Firefox Plugin) and start the same Query (Copy at Debugging from Code) and there are Data from the same Database with the same query.

It is possible, that the Android Device (HTC Sensation) and the Emulator are not powerful enough to run such difficult Querys?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

七月上 2024-12-10 16:55:31

在 sqlite 中,视图中的字段名称将在查询期间检索,除非您在视图创建期间指定字段名称。

view_all_sms 中是否存在 KUNO 字段,还是 Contact_ID 字段?

尝试:

Select * From view_all_sms_wcd where Contact_ID = '1' order by ST_DTE asc

In sqlite the field names in views are retrieved during the query unless you specify the field names during the view creation.

Is the field KUNO existing in the view_all_sms or is it the field Contact_ID?

Try:

Select * From view_all_sms_wcd where Contact_ID = '1' order by ST_DTE asc
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文