时间:2021-07-01 10:21:17 帮助过:4人阅读
2、序列操作
重置序列:alter sequence xxx restart with 1 创建序列:create sequence xxx START with 1 INCREMENT by 1 NO MINVALUE NO MAXVALUE CACHE 1 给某一列赋上序列:alter table [tbl_name] alter column [column_name] set default nextval(‘xxx‘)
3、设置主键
alter table [tbl_name] add constraint ‘pkey_name‘ ;
postgresql 表结构变更相关操作
标签:varchar ext seq col str sequence drop tar bsp