Обсуждение: Trigger question

Поиск
Список
Период
Сортировка

Trigger question

От
Daniel Schuchardt
Дата:
Hi list,

i'm a bit confused. I have a table with a trigger after insert. It is
possible that this trigger will do inserts in the same table, but is the
after insert trigger fired again in this case? (I would need this)

e.g.

USER INSERT

BEFORE TRIGGER
AFTER TRIGGER

->DECIDES TO INSERT X ROWS IN THE SAME TABLE

->BEFORE TRIGGER (this one is fired for each row the after trigger inserts)

->AFTER TRIGGER AGAIN???? FOR EACH ROW THE AFTER TRIGGER INSERTED

thnx a lot.
Daniel

Re: Trigger question

От
Daniel Schuchardt
Дата:
Ok, it is working fine.

> Hi list,
>
> i'm a bit confused. I have a table with a trigger after insert. It is
> possible that this trigger will do inserts in the same table, but is the
> after insert trigger fired again in this case? (I would need this)
>
> e.g.
>
> USER INSERT
>
> BEFORE TRIGGER
> AFTER TRIGGER
>
> ->DECIDES TO INSERT X ROWS IN THE SAME TABLE
>
> ->BEFORE TRIGGER (this one is fired for each row the after trigger inserts)
>
> ->AFTER TRIGGER AGAIN???? FOR EACH ROW THE AFTER TRIGGER INSERTED