标签:
1. 利用row_number()
select TarHandPhone from (select TarHandPhone ,ROW_NUMBER() over(order by id )as rowno from b
)m2 where rowno > (@pageIndex-1)*@pageSize and rowno<= @pageIndex*@pageSize
标签:
原文地址:http://www.cnblogs.com/hui1107464497/p/4502118.html