Re: On delete cascade

From: Scott Mason <mason_at_primenet.com>
Date: 1996/03/25
Message-ID: <4j748k$k9l_at_nnrp1.news.primenet.com>#1/1


Gerard H. Pille <ghp_at_infosoft.be> wrote:
: In article <4ivu1h$toq_at_news-f.iadfw.net>, Mike Openshaw
: (openshaw_at_airmail.net) says...
: !>
: !>tkyte_at_us.oracle.com (Thomas J Kyte) wrote:
: !>
: !>>ghp_at_infosoft.be (Gerard H. Pille) wrote:
: !>
: !>>>In article <4is48h$2rn_at_kuikka.inet.fi>, Sakari Lampola
: !>>>(Sakari.Lampola_at_cybersoft.inet.fi) says...
: !>>>!>
: !>>>!>
: !>>>!>Has anybody ever used "on delete cascade" option with foreign keys
: !>>>!>to guard referential integrity in a real production database ?
: !>>>!>Any problems ?
: !>>>!>
: !>>>!>Just curious,
: !>>>!>
: !>>>!>Sakari Lampola
: !>>>!>Cybersoft
: !>>>!>Finland
: !>>>!>
: !>>>!>
: !>>>I would never use it, it makes you loose half of the referential
: !>>>integrity.
: !>>>--
: !>>>Kind reGards
: !>>> \ / |
: !>>> X |
: !>>> / \ s
: !>>> Gerard
: !>
: !>>Elaborate please. What do you mean by 'you loose half of the
: !referential
: !>>integrity'. I use on delete cascade in many places in production.
: !>
: !>
: !>>Thomas Kyte
: !>>tkyte_at_us.oracle.com
: !>>Oracle Government
: !>
: !>
: !>>--------------------------------------------------------
: !>>opinions and statements are mine and do not necessarily
: !>>reflect the opinions of Oracle Corporation.
: !>
: !>Don't worry, Thomas; some people never will understand basic
: !>relational theory. Ya buy 'em book, ya buy 'em books, and the just
: !>chew the covers off.
: !>
: !>Michael B. Openshaw
: !>Integrated Medical Networks
: !>(Opinions expressed are my own)
: !>
 

: I feel happy for you being able to express your own opinion.
 

: --
: Kind reGards
: \ / |
: X |
: / \ s
: Gerard

Well, Sakari, I use delete cascades where ever it makes since to maintain database referential integrity. I think it is extremely helpful. Only use it where it makes since, where related data becomes meaningless when its referenced data is deleted. Do not use it everywhere without considering the results. I do not know what Gerard is talking about. Good luck.

--
-----------------------------------------------------------------------------
mason                                     __  __     ____  ___       ___ ____
mason_at_primenet.com                       /__)/__) / / / / /_  /\  / /_    /
                                        /   / \  / / / / /__ /  \/ /___  /
-----------------------------------------------------------------------------
Received on Mon Mar 25 1996 - 00:00:00 CET

Original text of this message