gocreate proc fenye_Pro(@pageIndex int,@pageCount int)asbeginselect top(@pageCount)* from (select *,ROW_NUMBER() over(order by RowId) RowIndex from Task where条件) t where RowIndex > @pageCount*(@pageIndex-1)end