<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 閱讀(103) 評論(0)  編輯  收藏 所屬分類: MySQL

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


    網站導航:
     
    主站蜘蛛池模板: 嫩草成人永久免费观看| 羞羞漫画在线成人漫画阅读免费| 国产V片在线播放免费无码| 国产无遮挡裸体免费视频| 亚洲五月丁香综合视频| 色影音免费色资源| 亚洲18在线天美| 黄瓜视频影院在线观看免费| 亚洲国产福利精品一区二区| 91禁漫免费进入| 亚洲日韩中文字幕| 性色av免费观看| 亚洲一区二区无码偷拍| 国内外成人免费视频| 国产亚洲精品精品精品| 亚洲国产a级视频| jizz免费观看| 亚洲成人在线网站| 久久国产免费福利永久| 2017亚洲男人天堂一| 国产伦一区二区三区免费| 国产尤物在线视精品在亚洲| 亚洲XX00视频| 在线毛片片免费观看| 亚洲专区在线视频| 成人黄色免费网站| 国产亚洲综合视频| 国产成人麻豆亚洲综合无码精品| 成人黄网站片免费视频 | 亚洲视频精品在线观看| 美女被cao免费看在线看网站| 亚洲精品无码av片| 亚洲精品456播放| 久久精品成人免费观看| 狠狠色香婷婷久久亚洲精品| 免费A级毛片无码A∨男男| 日本高清高色视频免费 | 国产成人精品亚洲一区| 亚洲阿v天堂在线| 91精品免费在线观看| 黄页网站在线免费观看|