更新索引至最大值:select setval('"demo".test_id_seq', (SELECT MAX("id") FROM demo.test));

查询下一个序列值:select nextval('"demo".test_id_seq');

相关文章:

  • 2021-11-03
  • 2021-04-14
  • 2021-12-30
  • 2021-06-15
  • 2022-01-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-29
  • 2021-09-06
  • 2022-12-23
  • 2021-07-19
  • 2021-11-17
  • 2021-05-31
  • 2022-12-23
相关资源
相似解决方案