CREATE SEQUENCE 表名_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;

alter table 表名 alter column id set default nextval('表名_id_seq');

 

相关文章:

  • 2022-12-23
  • 2021-06-21
  • 2021-09-01
  • 2021-09-19
  • 2022-02-07
  • 2022-02-07
  • 2022-12-23
  • 2022-02-22
猜你喜欢
  • 2021-11-23
  • 2022-02-07
  • 2022-12-23
  • 2021-07-27
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案