在Android中查询数据库会导致重复数据?
我有一个包含数据库查询的活动,它从查询中返回 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
似乎问题不在于我所做的查询,而是取决于我一直遵循的 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!!