Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: delete cascade & trigger
Daniel Morgan wrote:
> mitt wrote:
>
>
>>Hi, >> >>I have a table with an on-delete-cascade foreign key; >>in the row-level delete trigger I need to know, whether it fired because >>of a delete command on the table itself or if it was due to a >>"recursive" delete on the (grand-)father table; >> >>is there a way to accomplish this (in version >=8.1.7.4)? >>I know that this need hints at bad application design, but...; >> >>THX
those 2 tables belong to some other application(s) I have no influence on; the delete trigger (installed as part of our application) records a lot of information calculated in this trigger into one of our tables, which is analyzed later on by our application; the kind of processing done with this information very much depends on the "original cause" of the trigger-fire-event caused by some unkown delete statements done by that other applications; I'd like to record the reason for trigger-firing in our table in order to be able to react/branch processing in our application; Received on Wed Jul 30 2003 - 12:20:59 CDT
![]() |
![]() |