SóProvas


ID
582700
Banca
FCC
Órgão
TRT - 19ª Região (AL)
Ano
2011
Provas
Disciplina
Banco de Dados
Assuntos

Para uma dada tabela, foram criados 4 triggers utilizando- se PL/SQL, conforme abaixo:

I. Trigger 1 - BEFORE <statement>

II. Trigger 2 - BEFORE <for each row>

III. Trigger 3 - AFTER <statement>

IV. Trigger 4 - AFTER <for each row>

A sequência correta em que os triggers acima serão disparados é:

Alternativas
Comentários
  • PL/SQL Trigger Execution Hierarchy

    The following hierarchy is followed when a trigger is fired.
    1) BEFORE statement trigger fires first.
    2) Next BEFORE row level trigger fires, once for each row affected.
    3) Then AFTER row level trigger fires once for each affected row. This events will alternates between BEFORE and AFTER row level triggers.
    4) Finally the AFTER statement level trigger fires.