SQL Server之SQL的分页加排序等写法


SQL #sql server2012-11-02 11:30
select * from 
(
select ROW_NUMBER() over(order by _order desc) as _PID, * From 
(select (ID+PID) as _order ,* from Menu) as __SubQuery
)
as _SubQuery
where _PID between 12 and 20
order by _order desc 

相关文章

粤ICP备11097351号-1