Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Trigger problem
Holger Baer wrote:
> Cris Carampa wrote:
>
>> Holger Baer wrote: >> >>> The best way would have been if the only way to delete a row in >>> myTable was >>> through a package/stored procedure - that avoids the trigger problem >>> altogether. >> >> >> >> When I encounter this problem I usually create a view that mirrors the >> table, then I put all the logic in an INSTEAD OF trigger and expose >> the view - not the table - to the application. In that way I can do >> everything I want in the trigger :) Of course this is not an orthodox >> approach but it works for me. I hope it doesn't have side effects (I >> haven't experienced any so far). >> >> Kind regards, >>
I would agree though I would consider the instead-of trigger code a reasonably good surrogate for the packaged procedures. Still my preference is the same as yours in almost all cases.
-- Daniel A. Morgan University of Washington damorgan_at_x.washington.edu (replace 'x' with 'u' to respond)Received on Fri Mar 04 2005 - 11:34:08 CST
![]() |
![]() |