intpagecount=15(每页显示的行数)inttotalcount=30(页数*每页显示的行数),这里是第二页stringsearchstring=xxxxxx(搜索条件)selecttoppagecount*from表名whereidnotin(selecttoptotalcountidfrom表名wheresearchstring)wheresearchstringorderbytimedesc然后下个aspnetpage的分页控件就行了,以上是分页的sql语句。
@follow
顶0
加入收藏
相关问答推荐