sql 分页排序的存储过程

来源:互联网 发布:淘宝网店名称创意 编辑:程序博客网 时间:2024/06/15 00:17
select top pageSize * from table where xxx=xxx and id not in ( select top (pageNum-1)*pageSize id from table where xxx=xxx order by xxx,yyy ) order by xxx,yyy

原创粉丝点击