zoukankan      html  css  js  c++  java
  • 关于分页的研究

    //  sql = "select top " + pagesize + " cid,applicationCode,username,telephone,projName,loanPrice,createDate from BocCoupons where cid not in ( select top " + (page - 1) * pagesize + "cid from BocCoupons where "
                            + "isDel=0 and audit=0 order by createDate " + order + ") and isDel=0 and city='" + city + "' and audit=0 order by createDate " + order;
    //分页第一页
    select top 10 cid,applicationCode,username,telephone,projName,loanPrice,createDate from BocCoupons where cid not in ( select top 0 cid from BocCoupons where isDel=0 and audit=0 order by createDate desc) and isDel=0  and audit=0 order by createDate desc
    //分页第二页
    select top 10 cid,applicationCode,username,telephone,projName,loanPrice,createDate from BocCoupons where cid not in ( select top 10 cid from BocCoupons where isDel=0 and audit=0 order by createDate desc) and isDel=0  and audit=0 order by createDate desc
    

  • 相关阅读:
    08mybatis映射文件及别名
    2016年阅读书单
    Java的位运算
    Python线程操作
    Java之Jackson框架
    Java线程
    Canvas 知识体系简单总结
    图片轮播
    media页面布局2
    利用@media screen实现网页布局的自适应
  • 原文地址:https://www.cnblogs.com/zhangji/p/1855593.html
Copyright © 2011-2022 走看看