sqlserver的分頁方式

ROW_NUMBER() OVER()方式 select * from (       select *, ROW_NUMBER() OVER(Order by ArtistId ) AS RowId from ArtistModels  ) as b where RowId between 10 and 20  ---where RowId BETWEEN (當前頁數-1)*條數 and 當前頁
相關文章
相關標籤/搜索