在access数据库里,如何用sql语句查询数据库里第五条记录

如题所述

1、access支持sql语言
2、查询语句select的基本格式为select
*|字段名表
from
数据源;
3、如果只显示前5条记录,则带top
n子句,此处n为例5;
4、例如select
top
5
*
from
学籍,表示只查询学籍表的前5条记录。
温馨提示:答案为网友推荐,仅供参考
第1个回答  2020-03-24
假如主键字段为:PMKey,则可以如下查找:
select
*
from
info
where
PMKey
in(select
top
N
PMKey
from
info)
and
PMKey
not
in(select
top
N-1
pMKey
from
info)
相似回答