时间:2021-07-01 10:21:17 帮助过:297人阅读
(
customerid SERIAL primary key ,
companyname character varying,
contactname character varying,
phone character varying,
country character varying
)
法二
CREATE SEQUENCE event_id_seq
START WITH 1
INCREMENT BY 1 NO MINVALUE NO MAXVALUE
CACHE 1;
alter table event alter column id set default nextval(‘event_id_seq‘);
postgresql 如何设置主键自增
标签:pos rac rem tom gre sequence try start art