String sql="select top ("+pageSize+") * from userinfo where id" +" not in(select top (("+(pageIndex-1)+")*"+pageSize+") id from userinfo)";
我想分页同时根据id进行排序desc
哪位帮我改改!
1 回答
富国沪深
TA贡献1790条经验 获得超9个赞
String sql="select top ("+pageSize+") * from userinfo where id" +" not in(select top "+(pageIndex-1)*pageSize+" id from userinfo order by id) order by id";
- 1 回答
- 0 关注
- 615 浏览
添加回答
举报
0/150
提交
取消