testdb-# \dt;
List of relations
Schema | Name | Type | Owner
--------+--------+-------+----------
public | person | table | postgres
(1 row)
2.通配查询
testdb=# \dt per*;
List of relations
Schema | Name | Type | Owner
--------+--------+-------+----------
public | person | table | postgres
(1 row)
testdb=# \dt public.p*;
List of relations
Schema | Name | Type | Owner
--------+--------+-------+----------
public | person | table | postgres
(1 row)
3.查看表明细
testdb=# \d+ person;
Table "public.person"
Column | Type | Collation | Nullable | Default | Storage | Stats target | Descripti
on
--------+-------------------+-----------+----------+---------+----------+--------------+----------
---
no | integer |||| plain ||
name | character varying |||| extended ||