<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    隨筆-16  評論-84  文章-1  trackbacks-0

    Here i take jobs table of pubs databse for example,details as follow: 

    select top eachpage *  from  jobs where job_id not in ( select top (eachpage*(currentpage-1))  job_id from jobs order by job_id desc)) order by job_id desc;

    explain:
    1. eachpage : the number of each page show the recorder
    2.currentpage: current page

    notice:
    the red line in the sentence,you should take care of it, because Microsoft SQLServer  TOP Function can't support the expression .it can only support a number.
    so before you prepare to buildup the sql sentence ,you should alread calculate the result of the expression about (eachpage*(currentpage-1))  .

    Example:
    set  eachpage=3
          currentpage=5
     so  (eachpage*(currentpage-1)) =12
    select top 3 * from jobs where (job_id not in (select top 12 job_id from jobs order by job_id desc)) order by job_id desc


    posted on 2008-12-03 16:00 absolute 閱讀(556) 評論(0)  編輯  收藏 所屬分類: DataBase
    主站蜘蛛池模板: 久久爰www免费人成| 高清永久免费观看| 无码一区二区三区AV免费| 久久亚洲国产精品成人AV秋霞| 免费人成黄页在线观看日本| 亚洲视频精品在线| 182tv免费视频在线观看| 日本亚洲成高清一区二区三区| 亚洲综合小说久久另类区| 亚洲av成人中文无码专区| 日本高清免费网站| 日本亚洲中午字幕乱码| 99热在线免费播放| 亚洲无成人网77777| 久久久久国产精品免费免费搜索| 亚洲综合中文字幕无线码| 日韩精品免费一区二区三区| 男女猛烈xx00免费视频试看| 红杏亚洲影院一区二区三区| 亚洲夂夂婷婷色拍WW47| 免费看美女被靠到爽| 特级做a爰片毛片免费看| 亚洲日韩精品无码专区网址| 99热在线精品免费播放6| 亚洲熟妇无码AV| 中文字幕亚洲电影| 无码av免费一区二区三区| 亚洲成av人片在线看片| 日韩精品免费电影| 女人隐私秘视频黄www免费| 亚洲人成免费网站| 亚洲精品第一国产综合境外资源 | 亚洲人成电影在在线观看网色| 黄色免费网站网址| 香蕉视频免费在线播放| 亚洲伊人色欲综合网| 久久精品网站免费观看| 亚洲免费在线观看| 国产成人精品日本亚洲11| 亚洲国产精品一区二区第一页免| 免费无遮挡无码永久视频|