当前位置:Gxlcms > 数据库问题 > 简单分页查询SQL语句

简单分页查询SQL语句

时间:2021-07-01 10:21:17 帮助过:2人阅读

例子 select top(5) * from city where cityID not in (select top((2-1)*5) cityID from city order by cityID desc) order by cityID desc // 每页查询5条 在城市列表 条件是 id不在 (当前页-1)*每页条数 内的 按照id 逆序排列

简单分页查询SQL语句

标签:

人气教程排行