select top的问题

alex198342 2004-01-13 04:37:50
select top 5 * from xxx order by id desc
我想这样做
先查出最前面的,5条记录,但是怎么样在从第六条记录开始查询
...全文
36 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
peng0731 2004-01-13
  • 打赏
  • 举报
回复
先select * from xxx order by id desc
for i=1 to 5
取出5挑记录
next
rs.move 6
do while not rs.eof
取余下的
loop

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧