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

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

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

    神魂顛倒

    Memo

       :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
      0 隨筆 :: 3 文章 :: 3 評論 :: 0 Trackbacks
  • The LIMIT clause can be used to constrain the number of rows returned by the SELECT statement. LIMIT takes one or two numeric arguments, which must both be non-negative integer constants (except when using prepared statements).

    With two arguments, the first argument specifies the offset of the first row to return, and the second specifies the maximum number of rows to return. The offset of the initial row is 0 (not 1):

    SELECT * FROM tbl LIMIT 5,10;  # Retrieve rows 6-15
    

    To retrieve all rows from a certain offset up to the end of the result set, you can use some large number for the second parameter. This statement retrieves all rows from the 96th row to the last:

    SELECT * FROM tbl LIMIT 95,18446744073709551615;
    

    With one argument, the value specifies the number of rows to return from the beginning of the result set:

    SELECT * FROM tbl LIMIT 5;     # Retrieve first 5 rows
    

    In other words, LIMIT row_count is equivalent to LIMIT 0, row_count.

    For prepared statements, you can use placeholders. The following statements will return one row from the tbl table:

    SET @a=1;
    PREPARE STMT FROM 'SELECT * FROM tbl LIMIT ?';
    EXECUTE STMT USING @a;
    

    The following statements will return the second to sixth row from the tbl table:

    SET @skip=1; SET @numrows=5;
    PREPARE STMT FROM 'SELECT * FROM tbl LIMIT ?, ?';
    EXECUTE STMT USING @skip, @numrows;
    

    For compatibility with PostgreSQL, MySQL also supports the LIMIT row_count OFFSET offset syntax.

  • (select * order by id LIMIT 35,20)

    posted on 2008-04-06 23:47 star 閱讀(113) 評論(0)  編輯  收藏 所屬分類: MySQL

    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: 亚洲乱码精品久久久久..| 2022国内精品免费福利视频| 亚洲乱码中文字幕小综合| 欧美激情综合亚洲一二区| 国产99久久久久久免费看| 亚洲国产小视频精品久久久三级 | 亚洲精品中文字幕无码蜜桃 | 久久一区二区免费播放| 日本最新免费网站| 亚洲天堂中文字幕在线| 亚洲人成网站在线观看播放青青| 69免费视频大片| 亚洲日韩一页精品发布| 亚洲AV电影天堂男人的天堂| 日本免费v片一二三区| 亚洲国产美女精品久久久久| 免费在线黄色电影| 亚洲精品无码成人片在线观看| 美女被羞羞网站免费下载| 成人免费无码大片A毛片抽搐 | 亚洲一区在线观看视频| 丝袜足液精子免费视频| 一本久久综合亚洲鲁鲁五月天 | 久久久久久亚洲Av无码精品专口 | 中文字幕永久免费视频| 亚洲av福利无码无一区二区 | 国产亚洲精品无码专区| 美女黄色免费网站| 亚洲欧洲日产国码无码网站| 久久精品国产这里是免费| 亚洲国产精品无码专区影院| 国产精品综合专区中文字幕免费播放 | 亚洲成色在线综合网站 | 免费激情网站国产高清第一页| 色www永久免费视频| 久久久久久亚洲精品影院| 国产免费久久精品99re丫y| 337p日本欧洲亚洲大胆精品555588 | 亚洲色www永久网站| 大地资源在线资源免费观看 | 亚洲色婷婷综合久久|