zoukankan      html  css  js  c++  java
  • 分页。刚学的。Row_Number() Over

    select * from (select distinct id, Row_Number() Over(order by Creattime desc) As rownum, Creattime from ActivityInfo) as d where rownum between 21 And 30 order by Creattime desc

     


    string SQL1="select HelpId from (select distinct HelpId, Row_Number() Over(order by Creattime desc) As rownum, Creattime from  HelpAnswer) as d where rownum between ("+pageIndex+"-1)*15+1 And "+pageIndex+"*15 order by Creattime desc";

    本人声明: 个人主页:沐海(http://www.cnblogs.com/mahaisong) 以上文章都是经过本人设计实践和阅读其他文档得出。如果需要探讨或指教可以留言或加我QQ!欢迎交流!
  • 相关阅读:
    Nginx 跨域配置支持
    数据结构与算法分析
    数据结构与算法分析
    数据结构与算法分析
    Bash shell
    Bash shell
    HHUOJ 1040
    HHUOJ 1114
    HDUOJ 1171
    HDUOJ 1428
  • 原文地址:https://www.cnblogs.com/mahaisong/p/2027621.html
Copyright © 2011-2022 走看看