<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 返回太多字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  ibtmp1是非压缩的innodb临时表的独立表空间,通过innodb_temp_data_file_path参数指定文件的路径,文件名和大小,默认配置为ibtmp1:12M:autoextend,也就是说在文件系统磁盘足够的情况下,这个文件大小是可以无限增长的。 为了避免ibtmp1文件无止境的暴涨导致
                  What does SQL clause quot;GROUP BY 1quot; mean?(SQL 子句“GROUP BY 1是什么意思?意思是?)
                  MySQL groupwise MAX() returns unexpected results(MySQL groupwise MAX() 返回意外结果)
                  MySQL SELECT most frequent by group(MySQL SELECT 按组最频繁)
                  Why Mysql#39;s Group By and Oracle#39;s Group by behaviours are different(为什么 Mysql 的 Group By 和 Oracle 的 Group by 行为不同)
                  MySQL GROUP BY DateTime +/- 3 seconds(MySQL GROUP BY DateTime +/- 3 秒)
                  <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>