标签:ima prim null varchar2 not comm for ble password
①
create table p_user(
id number(10) not null primary key,
name varchar2(30),
password varchar2(20),
age number(10) );
②
create sequence p_user_Sequence
increment by 1
start with 1
nomaxvalue
nocycle
cache 10;
③
create or replace trigger p_user before
insert on p_user for each row
begin
select p_user_Sequence.nextval into:New.id from dual;
end;
commit;
insert into p_user(name,password,age)values(‘user‘,‘password‘,‘20‘);
commit;
ID:第一个为001
标签:ima prim null varchar2 not comm for ble password
原文地址:http://www.cnblogs.com/ysloong/p/6070570.html