Re: Integrity constraints with type inheritance

From: Daniel Roy <danielroy10junk_at_hotmail.com>
Date: 10 Sep 2003 11:35:07 -0700
Message-ID: <3722db.0309101035.3fff1a6_at_posting.google.com>


By creating your table my_table as of type base_typ, you stop yourself from being able to apply constraints referring to attributes of d1_typ only. According to Oracle (and any other OO languages), your variable "f2" does not even exist in the context of my_table. I therefore don't think that what you're trying to achieve is possible. I know it's not practical, but you'll have to define your tables of the type at the bottom of the hierarchy tree if you want to define constraints accessing variables only at the bottom of the tree. If you constantly expand on your hierarchical tree, go back to the drawing board and re-think your design approach.

Daniel Received on Wed Sep 10 2003 - 20:35:07 CEST

Original text of this message