创建一个序列
create sequence xl
创建表,默认和主键的使用。
create table db_12c_style_identity
(
id integer DEFAULT ON NULL xl.nextval primary key,
another_column varchar2(30)
)
insert into db_12c_style_identity (another_column) values ('hello')
select * from db_12c_style_identity
insert into db_12c_style_identity (id, another_column) values (null, 'goodbye')