我有SQLite DB查询,它一次返回一条记录。minReads) FROM categories)) AND status = 'a' ORDER BY rating DESC, rand_index DESC LIMIT 1 ",null);
如果我想要获取下一条记录,因为我们在上面的SQLite查询中应用了限制,我无法获取下一条记录。Limit = 1是必要<em
我正在建立博客网站,并试图将next和prev按钮分别用于下一篇文章和前一篇文章。在正式文档中,它解释了get_next_by_FOO(**kwargs)和where FOO is the name of the field.所以我的models.py和views.py正在跟进。"the_next" : the_next, return render(request, "post_detail.html", context)
我是否误解了它的概念