Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Overiding triggers!
George wrote:
>
> Is it possible to stop a trigger from executing in certain situations.
> An example of why I would do this: An insert trigger assigns a sequence
> value to a field. However on some insert events I would like to assign a
> value from another source to this field.
>
> Thanks in advance
>
> George
Just use a package variable...
create or replace
package please_do is
some_special_process boolean := true;
null;
then in your trigger
if please_do.some_special_process then
...
else
...
end if;
Your application then sets the package variable as appropriate
HTH
--