Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Enforcing hierarchial tree integrity
On Thu, 28 Jul 2005 20:20:09 GMT, Peter Griffin <peter_at_guy.com> wrote:
>Basically, when a node is deleted then all of it's children (if any)
>should get deleted too. I suspect this needs to be done using a delete
>trigger.
Just create the constraint with on delete cascade. That is all there is to it.
-- Sybrand Bakker, Senior Oracle DBAReceived on Thu Jul 28 2005 - 15:32:54 CDT
![]() |
![]() |