Re: Foreign Key referencing multiple tables: possible?
Hello Vinod
Thanks for your reply. Although it doesn't actually help me in this case, since the value may be or may not be present in all the tables.
Let me try to explain more what I need to see if you and the others can help me find a better solution.
The system I'm working on, is connected to a lot of different databases. I'm importing these data, treating them, and storing on my INNODB system. This field, (cod_sap mediumint unsigned not null UNIQUE), is a a non-necessary unique key in each of those database, but may be in more than one, or in none, and may appear more than once in 2 of them.
This fourth table will store a series of calculations (20 fields total) based on the values found on the others, grouped by the cod_sap. I wanted to guarantee that someone would be able to store bogus data by creating a row for a cod_sap that is non-existent. Any advice how I could enforce it on the DB side?
Thank you,
Sol
Subject
Views
Written By
Posted
4327
November 27, 2008 07:20AM
2757
November 28, 2008 05:49AM
Re: Foreign Key referencing multiple tables: possible?
2349
December 01, 2008 07:37AM
2062
December 01, 2008 11:01PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.