MENU

PostgreSQL迁移合并数据库后的重置序列起始值的操作

March 13, 2023 • 默认分类

select setval('xxx_id_seq', max(id)) from tableName;
Archives QR Code
QR Code for this page
Tipping QR Code