oracle 自增长、触发器、函数
oracle 跟mysql 实现 主键自增长的方式不一样
实现自增
create table student(id number,name VARCHAR2(32),primary key(id));
select * from student;
create sequence student_seq minvalue 1 nomaxvalue
increment by 1 start with 1 nocache;
select student_seq.nextval from dual;
cr
原创
2021-07-11 19:08:37 ·
474 阅读 ·
1 评论