\pset
highgo=# \pset border 0 --无边框
Border style is 0.
highgo=# select * from test_a;
id name
-- ----
1 a
2 b
3 c
4 d
5 e
(5 rows)
highgo=# \pset border 1 --边框只在内部
Border style is 1.
highgo=# select * from test_a;
id | name
----+------
1 | a
2 | b
3 | c
4 | d
5 | e
(5 rows)
highgo=# \pset border 2 --内外都有边框
Border style is 2.
highgo=# select * from test_a;
+----+------+
| id | name |
+----+------+
| 1 | a |
| 2 | b |
| 3 | c |
| 4 | d |
| 5 | e |
+----+------+
(5 rows)
highgo=# \pset border 0 --无边框
Border style is 0.
highgo=# select * from test_a;
id name
-- ----
1 a
2 b
3 c
4 d
5 e
(5 rows)
highgo=# \pset border 1 --边框只在内部
Border style is 1.
highgo=# select * from test_a;
id | name
----+------
1 | a
2 | b
3 | c
4 | d
5 | e
(5 rows)
highgo=# \pset border 2 --内外都有边框
Border style is 2.
highgo=# select * from test_a;
+----+------+
| id | name |
+----+------+
| 1 | a |
| 2 | b |
| 3 | c |
| 4 | d |
| 5 | e |
+----+------+
(5 rows)