【PostgreSQL】PostgreSQL中迁移序列和索引 一、迁移序列,创建序列脚本 二、迁移索引,删除及创建索引脚本 一、迁移序列,创建序列脚本 -- 迁移序列 select 'create sequence if not exists '|| sequencename || ' ' || case when last_value is not null then 'start with '