环境: sql server 2012 语法
select ROW_NUMBER() over(partition BY 分组字段 order by 排序字段),* as rowNums from 表名
分页
select t.* from(
select row_number() over(ORDER BY create_date DESC) as row_index,* from dcc_internal_file
) t
where t.row_index BETWEEN 11 and 20