MS 访问限制 [英] MS Access Limit

查看:22
本文介绍了MS 访问限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ms access 中 mysql Limit 的等价物是什么.TOP 是不够的,因为我将使用它进行分页.

What's the equivalent of mysql Limit in ms access. TOP is not sufficient since I'm going to use it for pagination.

谢谢

推荐答案

由于您似乎没有这些行的任何类型的顺序唯一键号,因此您需要创建一个排名列:如何对查询中的记录进行排名

Since it doesn't appear that you have any type of sequencial unique key number for these rows, you'll need to create a ranking column: How to Rank Records Within a Query

您需要确定一次将返回多少行 N = (10, 25,100).

You need to determine how many rows at a time you will return N = (10, 25,100).

您需要跟踪用户所在的页面"以及第一个和最后一个排名的值.

You need to keep track of what "page" the user is on and the values of the first and last rank.

然后,当您调用下一页时,接下来的 N 行要么是 > 要么是 <第一个和最后一个排名(取决于用户是转到上一页还是下一页.).

Then when you make the call for the next page it is either the next N rows that are > or < the first and last ranks (depending if the users is going to the previous or next page.).

我确定有一种方法可以计算最后一页、第一页等.

I'm sure there is a way to calculate the last page, first page, etc.

这篇关于MS 访问限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆