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

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

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

      1. 如何在终端中最好地显示 MySQL SELECT 返回太多字段?

        How to best display in Terminal a MySQL SELECT returning too many fields?(如何在终端中最好地显示 MySQL SELECT 返回太多字段?)

            <tbody id='PDHFH'></tbody>

            1. <tfoot id='PDHFH'></tfoot>

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

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

                  <bdo id='PDHFH'></bdo><ul id='PDHFH'></ul>
                  本文介绍了如何在终端中最好地显示 MySQL SELECT 返回太多字段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在使用 PuTTY 运行:

                  mysql> SELECT * FROM sometable;
                  

                  sometable 有许多字段,这导致许多列试图在终端中显示.字段会绕到下一行,因此很难将列标题与字段值对齐.

                  sometable has many fields and this results in many columns trying to be displayed in the terminal. The fields wrap onto the next line so it is very hard to line up column titles with field values.

                  终端查看此类数据有哪些解决方案?

                  我没有也不想访问 phpMyAdmin - 或任何其他 GUI 界面.我正在寻找这样的命令行解决方案:将 MySQL 查询结果保存到文本或 CVS 文件中

                  I don't have nor want access to phpMyAdmin - or any other GUI interfaces. I'm looking for command-line solutions such as this one: Save MySQL Query results into text or CVS file

                  推荐答案

                  G 代替 终止查询;.例如:

                  SELECT * FROM sometableG
                  

                  此查询垂直显示行,如下所示:

                  This query displays the rows vertically, like this:

                  *************************** 1. row ***************************
                                   Host: localhost
                                     Db: mydatabase1
                                   User: myuser1
                            Select_priv: Y
                            Insert_priv: Y
                            Update_priv: Y
                            ...
                  *************************** 2. row ***************************
                                   Host: localhost
                                     Db: mydatabase2
                                   User: myuser2
                            Select_priv: Y
                            Insert_priv: Y
                            Update_priv: Y
                            ...
                  

                  这篇关于如何在终端中最好地显示 MySQL SELECT 返回太多字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  How to update a record using sequelize for node?(如何使用节点的 sequelize 更新记录?)
                  How to provide a mysql database connection in single file in nodejs(如何在 nodejs 中的单个文件中提供 mysql 数据库连接)
                  Looping Over Result Sets in MySQL(在 MySQL 中循环结果集)
                  How to get Top 5 records in SqLite?(如何获得 Sqlite 中的前 5 条记录?)
                  SQL Server SELECT where any column contains #39;x#39;(SQL Server SELECT,其中任何列包含“x)
                  Default row order in SELECT query - SQL Server 2008 vs SQL 2012(SELECT 查询中的默认行顺序 - SQL Server 2008 与 SQL 2012)
                  <i id='TNqiA'><tr id='TNqiA'><dt id='TNqiA'><q id='TNqiA'><span id='TNqiA'><b id='TNqiA'><form id='TNqiA'><ins id='TNqiA'></ins><ul id='TNqiA'></ul><sub id='TNqiA'></sub></form><legend id='TNqiA'></legend><bdo id='TNqiA'><pre id='TNqiA'><center id='TNqiA'></center></pre></bdo></b><th id='TNqiA'></th></span></q></dt></tr></i><div id='TNqiA'><tfoot id='TNqiA'></tfoot><dl id='TNqiA'><fieldset id='TNqiA'></fieldset></dl></div>

                      <tfoot id='TNqiA'></tfoot>
                    1. <legend id='TNqiA'><style id='TNqiA'><dir id='TNqiA'><q id='TNqiA'></q></dir></style></legend>
                    2. <small id='TNqiA'></small><noframes id='TNqiA'>

                          <tbody id='TNqiA'></tbody>
                          • <bdo id='TNqiA'></bdo><ul id='TNqiA'></ul>