--增加主键ID
alter table CLERK_COMPARE add id number(16);

--设置sequence使ID自增
create sequence SEQ_ID
  minvalue 1
  maxvalue 999999999
  start with 1;

--将id的值设置为sequence
Update clerk_compare set id=seq_id.nextval;
commit;

--设置id为主键 
alter table CLERK_COMPARE
  add constraint CLERK_COMPARE primary key (ID);
View Code

相关文章:

  • 2021-11-23
  • 2022-12-23
  • 2022-02-07
  • 2022-01-08
  • 2022-12-23
  • 2022-02-22
  • 2022-12-23
  • 2022-01-23
猜你喜欢
  • 2022-12-23
  • 2022-02-07
  • 2022-02-07
  • 2022-02-07
  • 2022-12-23
  • 2021-10-22
  • 2022-12-23
相关资源
相似解决方案