VB.net 2010 视频教程 VB.net 2010 视频教程 python基础视频教程
SQL Server 2008 视频教程 c#入门经典教程 Visual Basic从门到精通视频教程
当前位置:
首页 > 数据库 > T-SQL >
  • 多表查询加分页

多表查询加分页

 
复制代码
select * from 

(    select ROW_NUMBER() over(order by ue.wzId desc)row,* from 

    (select e.title, e.childType as childType,e.content as content,e.rsTime as rsTime,e.id as wzId,u.id as usId,u.face as face,u.nickName as nickName from Essay e

    join Users u

    on e.userId=u.id)ue

     

) t

 where row between 1 and 7
复制代码

 

出处:https://www.cnblogs.com/ldli/p/14103593.html


相关教程