Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Cascading deletes and ORACLE
Hi, Casey,
You can find information at http://technet.oracle.com/, or Oracle7/8 manuals (hard copy or CDs). The basic syntax is
alter table referencing_table add constraint constraint_name foreign key (id1, id2, id3...) references referenced_table (r_id1, r_id2, r_id3...) on delete cascade; (for Oracle7)
alter table referencing_table add constraint constraint_name foreign key (id1, id2, id3...) references referenced_table (r_id1, r_id2, r_id3...) on delete cascade [or on delete set NULL]; (for Oracle8)
Lorne Sun
: Where can one find information on how to set up Cascading Deletes in
: ORACLE? In other words, if I delete a parent row, all of the children
: associated with the parent row are deleted as well.
: I would greatly appreaciate any information on the subject.
: TIA
: Casey :)
-- Received on Mon Dec 27 1999 - 19:27:41 CST
![]() |
![]() |