您的位置:首页 > 数据库

SQL Server 2005数据库分页

2008-12-29 01:30 337 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: