sql分页

use [New_BeiJingGuoMaoGame_www.bjifeicuiedu.com_1_new]
goui

with list as(
SELECT ROW_NUMBER() OVER(order by Id) AS num,*
FROM dbo.FcArticle
)
select * from list
where num between 51 and 100 it

select top 100 * from dbo.FcArticle order by Idselect

相关文章
相关标签/搜索