<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

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


    網站導航:
     
    主站蜘蛛池模板: 91精品免费国产高清在线| 秋霞人成在线观看免费视频| 国产人在线成免费视频| 亚洲欧洲精品一区二区三区| 一级成人a毛片免费播放| 亚洲天堂在线视频| 亚洲高清乱码午夜电影网| 免费看无码自慰一区二区| 亚洲高清有码中文字| 男男AV纯肉无码免费播放无码 | 亚洲成_人网站图片| 最近中文字幕免费mv视频8| 亚洲va在线va天堂va手机| 午夜网站免费版在线观看| 朝桐光亚洲专区在线中文字幕| 亚洲 自拍 另类小说综合图区| 99麻豆久久久国产精品免费| 亚洲日本va中文字幕久久| 99视频在线精品免费| 亚洲欧洲日本在线观看| 免费人成网站在线播放| 黄网站免费在线观看| 亚洲精品乱码久久久久久下载| 成年性午夜免费视频网站不卡| 免费人成视频在线观看免费| 亚洲人精品午夜射精日韩| 16女性下面无遮挡免费| 亚洲av无码偷拍在线观看| 久久精品国产亚洲Aⅴ蜜臀色欲| 久久久久久久岛国免费播放 | 久久精品免费电影| 亚洲最大福利视频| 国产性爱在线观看亚洲黄色一级片| 国产免费网站看v片在线| 久久亚洲精品专区蓝色区| www.亚洲色图| 久久免费视频精品| 亚洲欧美日本韩国| 亚洲中文字幕无码爆乳AV| 永久免费AV无码国产网站| 成人免费观看男女羞羞视频|