必须参数 : ResultRows , PageIndex , PageSize , SelectWhere
查询逻辑计算:
PageStart = ( PageIndex-1 ) * PageSize +1
PageEnd = PageIndex * PageSize
SET @StartRecord = (@PageIndex-1)*@PageSize + 1
SET @EndRecord = @StartRecord + @PageSize - 1
Sql = " between PageStart and PageEnd -1 "