dbTalk Databases Forums  

ForeignKey-Constraint with more than 1 tables

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss ForeignKey-Constraint with more than 1 tables in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #41  
Old   
Andreas Mosmann
 
Posts: n/a

Default Re: ForeignKey-Constraint with more than 1 tables - 04-02-2008 , 04:10 AM






The idea was only to have one column CID_LOCATION, so that
a) I can invent new _location_tables_ without changing table TTREES
b) I later can easy divide a _location_table_ into more tables a la
TFORRESTS -> TFORRESTS_COUNTY1/TFORREST_COUNTY2 ... and back
c) use a normal fk_constraint

c) doesn't work
b) too theoretical
a) seem to be more problems than advantages

To build subtables and supertables is more overhead than I want

So I do as I dis and if I understood correctly this was an option some
of you mentioned:

a) For each _location_table_ an ID- column
b) after-insert-trigger, that exact 1 ID is not NULL

Thank you all
Andreas Mosmann

--
wenn email, dann AndreasMosmann <bei> web <punkt> de

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.