更新索引至最大值:select setval('"demo".test_id_seq', (SELECT MAX("id") FROM demo.test));
查询下一个序列值:select nextval('"demo".test_id_seq');
更新索引至最大值:select setval('"demo".test_id_seq', (SELECT MAX("id") FROM demo.test));
查询下一个序列值:select nextval('"demo".test_id_seq');