
02/03/2012, 17:13
|
| | Fecha de Ingreso: septiembre-2011
Mensajes: 6
Antigüedad: 13 años, 4 meses Puntos: 0 | |
triggers en oracle Saludos
Mi pregunta es si es posible crear un trigger que haga un insert en una tabla, y que este trigger se dispare cuando se este insertando en la misma tabla
es decir si tengo un trigger que inserta un persona en la tabla persona, y quiero que este se dispare cuando hago un insert en la tabla persona
porque me salio este error
04091. 00000 - "table %s.%s is mutating, trigger/function may not see it"
*Cause: A trigger (or a user defined plsql function that is referenced in
this statement) attempted to look at (or modify) a table that was
in the middle of being modified by the statement which fired it.
*Action: Rewrite the trigger (or function) so it does not read that table. |