-- 获取表id最大值
select max(id) from tablename;
-- 修改序列
alter sequence sequence_name by 1 restart with 1442;
-- 验证下次序列号
select nextval('sequence_name');