基于sqlserver的四种分页方式总结
第一种:ROW_NUMBER() OVER()方式select * from ( select *, ROW_NUMBER() OVER(Order by ArtistId ) AS RowId from ArtistModels ) as bwhere RowId between 10 and 2
第一种:ROW_NUMBER() OVER()方式select * from ( select *, ROW_NUMBER() OVER(Order by ArtistId ) AS RowId from ArtistModels ) as bwhere RowId between 10 and 2