datagrip设置自增

//查看当前序列值
select currval('patrol_team_id_seq');
//设置当前序列
select setval('patrol_team_id_seq', 3 );

Tip: befor select we should set current value

你可能感兴趣的:(数据库)