SQL Server 2005数据库分页

select *
from Production.Product
where ProductID in (
 select ProductID
 from (
  select ProductID,
   ROW_NUMBER() OVER(ORDER BY ProductID) as nid
  from Production.Product
 ) as tid
 where nid between 21 and 50
)
go
posted @ 2008-12-29 01:30  子福当自强  阅读(272)  评论(0)    收藏  举报
悟道