• <bdo id='ANnCB'></bdo><ul id='ANnCB'></ul>

  • <tfoot id='ANnCB'></tfoot>

    <small id='ANnCB'></small><noframes id='ANnCB'>

      <i id='ANnCB'><tr id='ANnCB'><dt id='ANnCB'><q id='ANnCB'><span id='ANnCB'><b id='ANnCB'><form id='ANnCB'><ins id='ANnCB'></ins><ul id='ANnCB'></ul><sub id='ANnCB'></sub></form><legend id='ANnCB'></legend><bdo id='ANnCB'><pre id='ANnCB'><center id='ANnCB'></center></pre></bdo></b><th id='ANnCB'></th></span></q></dt></tr></i><div id='ANnCB'><tfoot id='ANnCB'></tfoot><dl id='ANnCB'><fieldset id='ANnCB'></fieldset></dl></div>

        <legend id='ANnCB'><style id='ANnCB'><dir id='ANnCB'><q id='ANnCB'></q></dir></style></legend>
      1. 如何在 MySQL 中从给定的行号开始选择行?

        How can I select rows in MySQL starting at a given row number?(如何在 MySQL 中从给定的行号开始选择行?)

        <tfoot id='A4iUT'></tfoot>
          <tbody id='A4iUT'></tbody>
        <legend id='A4iUT'><style id='A4iUT'><dir id='A4iUT'><q id='A4iUT'></q></dir></style></legend>

          <small id='A4iUT'></small><noframes id='A4iUT'>

            <bdo id='A4iUT'></bdo><ul id='A4iUT'></ul>
              <i id='A4iUT'><tr id='A4iUT'><dt id='A4iUT'><q id='A4iUT'><span id='A4iUT'><b id='A4iUT'><form id='A4iUT'><ins id='A4iUT'></ins><ul id='A4iUT'></ul><sub id='A4iUT'></sub></form><legend id='A4iUT'></legend><bdo id='A4iUT'><pre id='A4iUT'><center id='A4iUT'></center></pre></bdo></b><th id='A4iUT'></th></span></q></dt></tr></i><div id='A4iUT'><tfoot id='A4iUT'></tfoot><dl id='A4iUT'><fieldset id='A4iUT'></fieldset></dl></div>
                  本文介绍了如何在 MySQL 中从给定的行号开始选择行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  假设我在 MySQL 表中有 50 行.我想选择前十个 (LIMIT 10),但随后我希望能够在不同的页面上选择接下来的 10 个.

                  Say I have 50 rows in a MySQL table. I want to select the first ten (LIMIT 10), but then I want to be able to select the next 10 on a different page.

                  那么如何在第 10 行之后开始我的选择?

                  So how do I start my selection, after row 10?

                  更新的查询:

                  mysql_query("
                      SELECT * FROM `picdb`
                      WHERE `username` = '$username'
                      ORDER BY `picid` DESC
                      LIMIT '$start','$count'
                  ")
                  

                  推荐答案

                  我建议使用以下方法获取第一页:

                  I recommend working by obtaining the first page using:

                  LIMIT 0, 10
                  

                  然后是第二页

                  LIMIT 10, 10
                  

                  然后

                  LIMIT 20, 10
                  

                  第三页,依此类推.

                  这篇关于如何在 MySQL 中从给定的行号开始选择行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Appending GET parameters to URL from lt;formgt; action(将 GET 参数附加到来自 lt;formgt; 的 URL行动)
                  Forcing quot;Save Asquot; dialog via jQuery GET(强制“另存为通过 jQuery GET 对话框)
                  PHP - get certain word from string(PHP - 从字符串中获取某个单词)
                  How to debug a get request in php using curl(如何使用 curl 在 php 中调试 get 请求)
                  get a # from a url in php(从 php 中的 url 获取 #)
                  PHP - include() file not working when variables are put in url?(PHP - 将变量放入 url 时,include() 文件不起作用?)
                • <small id='FHMTs'></small><noframes id='FHMTs'>

                    <tbody id='FHMTs'></tbody>
                    <legend id='FHMTs'><style id='FHMTs'><dir id='FHMTs'><q id='FHMTs'></q></dir></style></legend>

                        <i id='FHMTs'><tr id='FHMTs'><dt id='FHMTs'><q id='FHMTs'><span id='FHMTs'><b id='FHMTs'><form id='FHMTs'><ins id='FHMTs'></ins><ul id='FHMTs'></ul><sub id='FHMTs'></sub></form><legend id='FHMTs'></legend><bdo id='FHMTs'><pre id='FHMTs'><center id='FHMTs'></center></pre></bdo></b><th id='FHMTs'></th></span></q></dt></tr></i><div id='FHMTs'><tfoot id='FHMTs'></tfoot><dl id='FHMTs'><fieldset id='FHMTs'></fieldset></dl></div>
                          <bdo id='FHMTs'></bdo><ul id='FHMTs'></ul>
                          <tfoot id='FHMTs'></tfoot>