全速加载中

SQL分页笔记

  select * from
  (
  select *, ROW_NUMBER() OVER(ORDER BY id  DESC) AS rownum from dbo.fc_newhouse
  )as t
  where t.rownum>@startId and t.rownum<@endId

posted @ 2013-05-06 16:07  许鸿飞  阅读(187)  评论(0编辑  收藏  举报