【PostgreSQL】PostgreSQL序列迁移
/* PostgreSQL序列迁移 */
select 'create sequence '||t.sequencename||' start with '||coalesce(t.last_value,t.start_value)+1||
/* PostgreSQL序列迁移 */
select 'create sequence '||t.sequencename||' start with '||coalesce(t.last_value,t.start_value)+1||