摘要:
[代码]下面一个就是利用他的一个利用唯一列 (id)编号来产生一个区间,必须要求是自增编号,效果不太好,不适用于搜索结果。代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--selecttop页大小*fromtesttablewhere(id>(selectmax(id)from(selecttop页大小*页数idfrom表orderbyid)ast))orderbyid--弊病:1强制排序--2排序列必须是唯一列,否则分页情况不符实际欢迎大 阅读全文
posted @ 2011-02-15 09:36 陈力 阅读(137) 评论(0) 推荐(0) 编辑