How to adjust display settings of mysql command line?

前端 未结 5 1751
被撕碎了的回忆
被撕碎了的回忆 2021-01-30 08:57

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 the

5条回答
  •  迷失自我
    2021-01-30 09:44

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

    Example:

    SELECT * FROM USER \G
    

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

提交回复
热议问题