有100条记录,怎么查询出前20条记录?

xqi8 2003-11-08 01:00:08
有100条记录,怎么查询出前20条记录?

是用什么语句 ?
...全文
85 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
txlicenhe 2003-11-08
  • 打赏
  • 举报
回复
select top 20 from table

select top 20 from table order by 某一字段

select top 20 from table order by 某一字段 desc


newmcz 2003-11-08
  • 打赏
  • 举报
回复
select top 20 from table
playyuer 2003-11-08
  • 打赏
  • 举报
回复
top

34,593

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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