postgresql重置序列起始值

-- 序列重置到1000
alter sequence sequence_name restart with 1000
-- 验证
SELECT nextval('sequence_name');

猜你喜欢

转载自blog.csdn.net/weixin_43169720/article/details/86133724
今日推荐