码迷,mamicode.com
首页 > 其他好文 > 详细

分页 - 连接查询分页

时间:2016-01-05 12:34:01      阅读:161      评论:0      收藏:0      [点我收藏+]

标签:

select top (10) a.id,a.tool_Name,a.tool_Describe 

from (
		select ROW_NUMBER() over(order by u.id) as rownum, t.id,t.tool_Name,t.tool_Describe 
		from Tb_tool as t 
		join Tb_upkeep as u 
		on t.id = u.tool_Id 
		where t.id = 35 
   ) as a 

where a.rownum > ‘0‘ and a.rownum <= ‘6‘

 

分页 - 连接查询分页

标签:

原文地址:http://www.cnblogs.com/KTblog/p/5101853.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!