Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: important : deleting rows with PL/SQL

Re: important : deleting rows with PL/SQL

From: Daniel Morgan <damorgan_at_x.washington.edu>
Date: Tue, 20 Jan 2004 07:24:50 -0800
Message-ID: <1074612220.86481@yasure>


philippe wrote:

> i've studied on a project in which there were no option "delete cascade"
> on foreign keys but only instructions of deletions made manually
> and i have to reproduce the same construction of procedures in my
> present project
>
> so i wondered if there was a question of performance behind
>
> i prefer to use the option of deletion on cascade but i'm not sure i'm
> right

Is this school work?

You have three choices:

1. Use ON DELETE CASADE as Michel recommended.
2. Code a DELETE trigger
3. Code it the actions step by step into the proc. if one exists.

Option 3 is the worst of the lot.

-- 
Daniel Morgan
http://www.outreach.washington.edu/ext/certificates/oad/oad_crs.asp
http://www.outreach.washington.edu/ext/certificates/aoa/aoa_crs.asp
damorgan_at_x.washington.edu
(replace 'x' with a 'u' to reply)
Received on Tue Jan 20 2004 - 09:24:50 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US