创建序列: CREATE SEQUENCE table_name_id_seq;将序列与表的列关联: ALTER TABLE table_name ALTER COLUMN id SET DEFAULT nextval('ta...