userinfo表id需要實現自增效果
代碼
create sequence seq_userinfo
minvalue
start with
increment by
代碼
create or replace trigger tigger_userinfo
before insert on userinfo
for each row
declare
begin
select SEQ_userinfo
end tigger_userinfo;
From:http://tw.wingwit.com/Article/program/Oracle/201311/17447.html