SQLの表示結果を縦にしたい\G
mysql> select * from table_name where id = 1\G
普段は;(セミコロン)を終わりにつけているものを\Gに置き換える。
表示例
mysql> select * from test_table;
+----+--------+--------+--------+
| id | teamid | status |   a    |
+----+--------+--------+--------+
|  1 |      1 |   no   |  200   |
|  2 |      1 |   ok   |  250   |
+----+--------+--------+--------+
2 rows in set (0.00 sec)
mysql>
mysql> select * from test_table \G
************ 1. row ************
  id: 1
  teamid: 1
  status: no
  a: 200
************ 2. row ************
  id: 2
  teamid: 1
  status: ok
  a: 250