Existe uma maneira de criar vários gatilhos em um scrip
Estou tentando criar vários gatilhos com apenas o upload de um script para um espaço de trabalho Oracle DB / APEX e executando-o uma ve
Aqui está um breve script comparado ao que estou tentando usar:
create or replace trigger "BI_TEC_ROLES"
before insert on "TEC_ROLES"
for each row
begin
if :NEW."ROLE_ID" is null then
select "TEC_ROLES_SEQ".nextval into :NEW."ROLE_ID" from dual;
end if;
end;
create or replace trigger "BI_TEC_STATUSES"
before insert on "TEC_STATUSES"
for each row
begin
if :NEW."STATUS_ID" is null then
select "TEC_STATUSES_SEQ".nextval into :NEW."STATUS_ID" from dual;
end if;
end;
create or replace trigger "BI_TEC_SUBS"
before insert on "TEC_SUBS"
for each row
begin
if :NEW."SUB_ID" is null then
select "TEC_SUBS_SEQ".nextval into :NEW."SUB_ID" from dual;
end if;
end;
Eu tentei colocar GO entre cada bloco individual, mas ainda assim apenas cria o primeiro gatilho, em seguida, aparece um erro no segundo dizendo:
Error(7,1): PLS-00103: Encountered the symbol "CREATE"
Espero que seja possível fazer isso. Muito obrigado pelo seu tempo e interesse =)