String sql="select top ("+pageSize+") * from userinfo where id"
+" not in(select top (("+(pageIndex-1)+")*"+pageSize+") id from userinfo)";
我想分页同时根据id进行排序desc
哪位帮我改改!
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";
貌似不可以,再帮我看看!还是么有达到排序的功能
ok!好了!谢谢!