读书人

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

发布时间: 2013-04-09 16:45:09 作者: rapoo

请问以上查询在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

读书人网 >SQL Server

热点推荐