<small id='4o8r9'></small><noframes id='4o8r9'>

    1. <tfoot id='4o8r9'></tfoot>

        <i id='4o8r9'><tr id='4o8r9'><dt id='4o8r9'><q id='4o8r9'><span id='4o8r9'><b id='4o8r9'><form id='4o8r9'><ins id='4o8r9'></ins><ul id='4o8r9'></ul><sub id='4o8r9'></sub></form><legend id='4o8r9'></legend><bdo id='4o8r9'><pre id='4o8r9'><center id='4o8r9'></center></pre></bdo></b><th id='4o8r9'></th></span></q></dt></tr></i><div id='4o8r9'><tfoot id='4o8r9'></tfoot><dl id='4o8r9'><fieldset id='4o8r9'></fieldset></dl></div>
      1. <legend id='4o8r9'><style id='4o8r9'><dir id='4o8r9'><q id='4o8r9'></q></dir></style></legend>

        • <bdo id='4o8r9'></bdo><ul id='4o8r9'></ul>

        如何在 PHPMyAdmin 中为表设置默认排序(即始终为“主键 - 降序")

        How can I set a default sort for tables in PHPMyAdmin (i.e. always quot;Primary key - Descendingquot;)(如何在 PHPMyAdmin 中为表设置默认排序(即始终为“主键 - 降序))
        <tfoot id='A44O9'></tfoot>

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

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

              • <bdo id='A44O9'></bdo><ul id='A44O9'></ul>
                <legend id='A44O9'><style id='A44O9'><dir id='A44O9'><q id='A44O9'></q></dir></style></legend>

                • 本文介绍了如何在 PHPMyAdmin 中为表设置默认排序(即始终为“主键 - 降序")的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  尽管它在很多方面令人讨厌,但我在编写 PHP 时一直使用 PHPMyAdmin 来调试数据库问题.默认情况下,它按主键升序对表进行排序.99% 的情况下,我宁愿将最新数据(我的测试数据)默认显示在顶部,而不是保存无用的前几条记录.

                  有没有办法将 PHPMyAdmin 配置为默认显示最新记录?改变类似的行为?

                  解决方案

                  对于来到这里寻找答案的其他人:

                  在 phpMyAdmin 4.5.0 中,也许在更早的版本中,您可以设置 $cfg['TablePrimaryKeyOrder'] 配置如下:

                  $cfg['TablePrimaryKeyOrder'] = 'DESC';

                  <块引用>

                  这定义了表的默认排序顺序,有一个主键,当没有外部定义的排序顺序时.可接受的值:[‘NONE’、‘ASC’、‘DESC’]

                  如果表有一个主键并且没有对其应用其他排序,这将设置默认排序.

                  Even though its obnoxious in a lot of ways I use PHPMyAdmin all the time to debug database issues while writing PHP. By default it sorts tables by primary key ascending. 99% of the time I would rather have the newest data (my test data) shown at the top by default rather than the useless first few records ever saved.

                  Is there a way to configure PHPMyAdmin to show the newest records by default? To alter similar behavior?

                  解决方案

                  For anyone else who comes here looking for an answer:

                  In phpMyAdmin 4.5.0, maybe in earlier versions too, you can set the $cfg['TablePrimaryKeyOrder'] config like so:

                  $cfg['TablePrimaryKeyOrder'] = 'DESC';
                  

                  This defines the default sort order for the tables, having a primary key, when there is no sort order defines externally. Acceptable values : [‘NONE’, ‘ASC’, ‘DESC’]

                  This sets the default sort if the table has a primary key and that no other sort has been applied to it.

                  这篇关于如何在 PHPMyAdmin 中为表设置默认排序(即始终为“主键 - 降序")的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                    <tfoot id='NMFp3'></tfoot>
                    • <small id='NMFp3'></small><noframes id='NMFp3'>

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

                        <bdo id='NMFp3'></bdo><ul id='NMFp3'></ul>
                            <legend id='NMFp3'><style id='NMFp3'><dir id='NMFp3'><q id='NMFp3'></q></dir></style></legend>
                              <tbody id='NMFp3'></tbody>