在Android中查询数据库会导致重复数据?

发布于 2025-01-07 06:24:48 字数 132 浏览 3 评论 0原文

我有一个包含数据库查询的活动,它从查询中返回 300 条记录。现在我转到另一个活动并在同一个数据库中进行更改。现在,当我返回第一个活动并通过执行相同查询刷新数据库时,我得到了 600 条记录。

谁能建议我哪里出错了?

I have an activity which has a database query and it brings back 300 records from the query. Now I move to another activity and make changes in the same database. Now when I return back to the first activity and refresh the database by making the same query, I get 600 records.

Can anyone please suggest where I am going wrong?

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

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

发布评论

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

评论(1

彼岸花似海 2025-01-14 06:24:48

似乎问题不在于我所做的查询,而是取决于我一直遵循的 UI 渲染模式,这个问题已再次针对 Harism 提出
再次感谢大家,每次我在这里都提供帮助,干杯!!

Seems that the issue wouldn't be with the Queries made by me, rather its dependent on the UI rendering pattern i have been following, the question has been put again for Harism
Thanks again everyone, helps everytime i am here, cheers!!

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