oracle建表设置自增主键
--建表
create table t_student
( s_id number primary key,
name char(10) not null
);
--建序列
create sequence stu_sequence
increment by 1
start with 1
nomaxvalue
nocycle
cache 10;
-- 建触发器
create or replace
oracle建表设置自增主键
--建表
create table t_student
( s_id number primary key,
name char(10) not null
);
--建序列
create sequence stu_sequence
increment by 1
start with 1
nomaxvalue
nocycle
cache 10;
-- 建触发器
create or replace