創建自增序列
create sequence APP_SEQ
minvalue 1
maxvalue 999999
start with 1
increment by 1
nocache;
創建觸發器
create or replace trigger APP_TRI
before insert on MMC_APP_BASE_INFO for each row
begin
select APP_SEQ.nextval into :new.appno from dual;
end;