当前位置: 代码迷 >> Sql Server >> 请教以上查询在SQL2005 里分页查询写法?
  详细解决方案

请教以上查询在SQL2005 里分页查询写法?

热度:61   发布时间:2016-04-24 23:06:10.0
请问以上查询在SQL2005 里分页查询写法???
select * from  product where smallid='"+smallid+"' order by pid desc

请问以上查询在SQL2005 里分页查询写法???


------解决方案--------------------
select * from (
select row_number() over(order by pid desc) as rn, *  from product   where smallid=‘8888'
) a
where rn between 1 and 10
  相关解决方案