CREATE SEQUENCE 表名_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; alter table 表名 alter column id set default nextval('表名_id_seq');
pgsql 主键添加自增
猜你喜欢
转载自www.cnblogs.com/timipaul/p/12801890.html
今日推荐
周排行