intpagecount=15(每頁顯示的行數)inttotalcount=30(頁數*每頁顯示的行數),這裡是第二頁stringsearchstring=xxxxxx(搜索條件)selecttoppagecount*from表名whereidnotin(selecttoptotalcountidfrom表名wheresearchstring)wheresearchstringorderbytimedesc然後下個aspnetpage的分頁控制項就行了,以上是分頁的sql語句。
@follow
頂0
加入收藏
相關問答推薦