CREATE SEQUENCE circlefence_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
alter table circlefence alter column id set default nextval('circlefence_id_seq');
CREATE SEQUENCE circlefence_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
alter table circlefence alter column id set default nextval('circlefence_id_seq');
转载于:https://www.cnblogs.com/viewcozy/p/4792868.html