sql ROW_NUMBER函数做分页查询

来源:互联网 发布:pre软件c4埋雷 编辑:程序博客网 时间:2024/05/17 16:45

select  top 10  al.rowid,us.U_UserName, al.L_Contentr,al.L_OpType,al.L_CreateTime from  AU_UserBasic as us,


(select  ROW_NUMBER() over(order by l_id) as rowid,U_Code, L_Contentr ,L_OpType,L_CreateTime from AU_Log   )


 al where us.U_Code=al.U_Code and rowid>0 
0 0