如何调整mysql命令行的显示设置? [英] How to adjust display settings of mysql command line?

查看:193
本文介绍了如何调整mysql命令行的显示设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

mysql的命令行未正确显示结果。我的意思是表的一些列在第一行一些在第二行。输出也分成两行。如何调整这些设置以便正确显示结果。

Command Line of mysql is not displaying results properly. I mean some columns of table are in 1st line some in 2nd line. Output is also broken into two rows. How do I adjust these settings so that it properly display results.

推荐答案

可以使用 \

You can use the \G command (instead of the ;) at the end of your SQL queries...

示例:

SELECT * FROM USER \G

它将以行形式而不是列形式显示您的表格。

It will display your table in row form instead of column form.

这篇关于如何调整mysql命令行的显示设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆