更新索引至最大值: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');