数据表中比如有20条数据
读取前5条数据
select top 5 * from 表 order by id desc
读取前5条数据后的5条数据
(就是查询前10条记录,取后面5个)
select top 5 * from 表 where
id not in (select top 5 id from 表)
本内容来源于711网络,原文地址:file:///D:/Backup/我的文档/一听音乐盒/查询前10条记录,取后面5条记录的ASP代码%20-%20711网络.htm
读取前5条数据
select top 5 * from 表 order by id desc
读取前5条数据后的5条数据
(就是查询前10条记录,取后面5个)
select top 5 * from 表 where
id not in (select top 5 id from 表)
本内容来源于711网络,原文地址:file:///D:/Backup/我的文档/一听音乐盒/查询前10条记录,取后面5条记录的ASP代码%20-%20711网络.htm