UPDATE
环境: postgresql 10.5
redhat7.
上下文:
db1=# \d
List of relations
Schema | Name | Type | Owner
--------+----------------+----------+-----------
public | stu_bk | table | wangyanru
public | student | table | wangyanru
public | student_bk | table | wangyanru
public | student_id_seq | sequence | wangyanru
public | subject | table | wangyanru
(5 rows)
db1=# \d+ student
Table "public.student"
Column | Type | Collation | Nullable | Default | Storage | Stats target | Description
-----------+-----------------------------+-----------+----------+-------------------------------------+----------+--------------+-------------
id | integer | | not null | nextval('student_id_seq'::regclass) | pl