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

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


    網站導航:
     
    主站蜘蛛池模板: 亚洲性线免费观看视频成熟| 久久亚洲精品成人av无码网站| jlzzjlzz亚洲jzjzjz| 91高清免费国产自产拍2021| 亚洲A∨无码一区二区三区| 久久久高清日本道免费观看| 亚洲国产成人片在线观看无码| 手机看片国产免费永久| 国产亚洲成AV人片在线观黄桃| 久久99毛片免费观看不卡| 亚洲综合自拍成人| 国产成人精品免费视频网页大全| 亚洲人成电影青青在线播放| 成人免费毛片观看| 无遮挡免费一区二区三区| 亚洲综合图色40p| 99精品视频免费在线观看| 亚洲乱码一区av春药高潮| 特级淫片国产免费高清视频| 黄页免费视频播放在线播放| 国精无码欧精品亚洲一区| 亚洲美女免费视频| 黄页网址大全免费观看12网站| 亚洲精品自在在线观看| 日韩插啊免费视频在线观看| 亚洲AV无码一区二区三区牛牛| 亚洲国产精品日韩专区AV| 免费人成黄页在线观看日本| 亚洲成人黄色在线观看| 免费大香伊蕉在人线国产 | 18观看免费永久视频| 国产色在线|亚洲| 亚洲色婷婷综合开心网| 99精品视频在线观看免费专区 | 亚洲AV无码久久精品色欲| 无码精品A∨在线观看免费| 美女扒开屁股让男人桶爽免费| 久久精品视频亚洲| 日本高清免费aaaaa大片视频| 你懂得的在线观看免费视频| 77777亚洲午夜久久多喷|