Asked:2023-07-21 19:54:18 +0000 UTC2023-07-21 19:54:18 +0000 UTC2023-07-21 19:54:18 +0000 UTC
在Liquibase迁移脚本中设置新列的序列号
772
我正在向表中添加新列。
alter table manual_security add isin_code varchar(12) not null;
alter table manual_security add sec_subtype varchar(12) not null;
alter table manual_security add security_id integer primary key not null;
接受字段的顺序并不重要的想法。好吧,要么删除该表,要么创建一个具有新字段顺序的新表。
postgresql 中无法更改字段的存储顺序。