标签: sql sql-server oracle
create trigger TIB_ESTOQUE before insert on ESTOQUE for each row begin -- Column "CODIGO" uses sequence S_ESTOQUE select S_ESTOQUE.NEXTVAL INTO :new.CODIGO from dual; end;