其他分享
首页 > 其他分享> > ADO.net很重要

ADO.net很重要

作者:互联网

一个分页查询
set statistics time on; -- 分页查询(通用型) select top pageSize * from (select row_number() over(order by sno asc) as rownumber,* from student) temp_row where rownumber>((pageIndex-1)*pageSize); set statistics time on; -- 分页查询第2页,每页有10条记录 select top 10 * from (select row_number() over(order by sno asc) as rownumber,* from student) temp_row where rownumber>10;

  

 

 

 今天又要从存储过程中获取到传的参数。

 

标签:10,重要,分页,rownumber,查询,ADO,net,select,row
来源: https://www.cnblogs.com/zzz7/p/13640550.html