创建序列
create sequence seq_student
start with 6
increment by 1
maxvalue 500
nominvalue
nocycle
nocache;

创建触发器
create or replace trigger trigger_student
before insert on student
for each row
  declare
BEGIN
select seq_student.nextval into :new.id from dual;
END;

 

相关文章:

  • 2021-12-10
  • 2021-11-27
  • 2021-04-06
  • 2021-05-30
  • 2021-12-09
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-10
  • 2021-12-20
  • 2021-11-27
  • 2021-09-24
  • 2021-10-31
  • 2021-12-19
相关资源
相似解决方案