oracle12c之后可以直接定义 字段的默认值为一个自增序列
create sequence test_seq start with 1 increment by 1 nocycle;
create table test_tab
(
id number default test_seq.nextval primary key
);
oracle 12c 自增序列
最新推荐文章于 2024-02-21 18:44:34 发布
oracle12c之后可以直接定义 字段的默认值为一个自增序列
create sequence test_seq start with 1 increment by 1 nocycle;
create table test_tab
(
id number default test_seq.nextval primary key
);