怎样取出后100名的成绩?

hgllucky 2003-11-26 01:50:20
取出前100名,用
select top 100 from table
那么取出后100名应该怎样写?
与top相反的应该是什么?
...全文
43 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
xiaogug 2003-11-26
  • 打赏
  • 举报
回复
按id号的升序取前100(按id号的降序取后100)
select top 100 id from table order by id asc

按id号的降序取前100(按id号的升序取后100)
select top 100 id from table order by id desc
hgllucky 2003-11-26
  • 打赏
  • 举报
回复
我知道了,多谢各位
dx 2003-11-26
  • 打赏
  • 举报
回复
按楼上的操作,一定可以搞定
fengstudios 2003-11-26
  • 打赏
  • 举报
回复
或者order by desc
fengstudios 2003-11-26
  • 打赏
  • 举报
回复
select top 100 from table order by ** asc
pimple 2003-11-26
  • 打赏
  • 举报
回复
降序: select top 100 from table where 条件 desc
缺省时表示用升序排列等同于:select top 100 from table where 条件 asc

你说的好像是搞错了:select top 100 from table 这个取出的记录应该是后100名..

28,407

社区成员

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

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