<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 閱讀(542) 評論(0)  編輯  收藏 所屬分類: DataBase
    主站蜘蛛池模板: 特级一级毛片免费看| 国产又大又黑又粗免费视频| 四虎国产精品成人免费久久| 亚洲一区无码中文字幕乱码| 国产V亚洲V天堂A无码| 亚洲国产日韩在线观频| 午夜免费福利影院| 免费黄色网址网站| 日韩免费无码一区二区三区| 久久国产乱子伦精品免费午夜| 国产精品亚洲片在线花蝴蝶 | 中国一级特黄高清免费的大片中国一级黄色片 | 亚洲av无码一区二区三区不卡 | 亚洲日韩一区二区一无码| 久久亚洲AV成人无码软件| 欧洲亚洲国产清在高| 国产成人99久久亚洲综合精品| 国产一区二区三区免费在线观看| 成人毛片18女人毛片免费96| 国产在线jyzzjyzz免费麻豆 | 亚洲精品国产第1页| 亚洲综合日韩中文字幕v在线 | 99久久国产免费-99久久国产免费| A片在线免费观看| 在线观看免费黄网站| WWW免费视频在线观看播放| 久香草视频在线观看免费| 国产精品亚洲一区二区三区在线观看| 亚洲国产精品成人AV在线| 亚洲熟妇丰满xxxxx| 亚洲欧美中文日韩视频| 亚洲日产乱码一二三区别| 亚洲AV成人无码网站| 久久亚洲中文无码咪咪爱| 婷婷亚洲综合五月天小说在线| 久久亚洲精品无码av| 一区免费在线观看| 中文字幕不卡免费高清视频| 美女无遮挡拍拍拍免费视频| 三年片免费观看大全国语| 麻豆精品不卡国产免费看|