home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases.sybase
- Path: sparky!uunet!utcsri!newsflash.concordia.ca!mizar.cc.umanitoba.ca!mona.muug.mb.ca!dmenns
- From: dmenns@muug.mb.ca (Darren Enns)
- Subject: Recursive Table Trigger Protection?
- Message-ID: <1992Nov17.001711.8509@muug.mb.ca>
- Sender: dmenns@muug.mb.ca
- Organization: Manitoba Unix User Group, Winnipeg, Manitoba, Canada
- Distribution: comp.databases.sybase
- Date: Tue, 17 Nov 1992 00:17:11 GMT
- Lines: 18
-
- Greetings all. As new situations arise in our very immature Sybase environment
- we DBA's try to protect the integrity of our data using triggers. The newest
- pickle we have encountered is the classic recursive table. We feel that we
- should try to protect the table from a looping recursive relationship, but
- we don't know of any 'clever' way to do so. Please help if you can.
-
- For the specific example, we have essentially a 'region' table where regions
- are contained in other regions (and are connected via foreign keys). For
- example, let me use an 'American' example:
-
- California is a region in the United States
- The United States is a region in North America
- North America is a region of the World
-
- An error would now be if the World was a region of California.
-
- Dare
-
-