Hi
I have a problem with the Foreign key in Postgres 8.1 under Windows XP for example:
I have PERSON table as a superclass and
PERSON_A, PERSON_B, PERSON_C as subclasses
Table_X as an ordinary table
Then I want to link Table_X with PERSON_B, PERSON_C tables
with a Foreign key which is id_no which is PK in the PERSON_B, PERSON_C tables
(I had used inheritance, and I stored the data in the last subclasses for each superclass in my DB)
So, when I want to store the id_no=3 in the Table_X it says that id_no=3 is not exist in the PERSON_B which is actually in PERSON_C table :chomp:
Then I tried to link the id_no in the Table_X with PERSON table (superclass)
it says that id_no=3 is not exist in the PERSON table :chomp:
So, what I have to do?
I have a problem with the Foreign key in Postgres 8.1 under Windows XP for example:
I have PERSON table as a superclass and
PERSON_A, PERSON_B, PERSON_C as subclasses
Table_X as an ordinary table
Then I want to link Table_X with PERSON_B, PERSON_C tables
with a Foreign key which is id_no which is PK in the PERSON_B, PERSON_C tables
(I had used inheritance, and I stored the data in the last subclasses for each superclass in my DB)
So, when I want to store the id_no=3 in the Table_X it says that id_no=3 is not exist in the PERSON_B which is actually in PERSON_C table :chomp:
Then I tried to link the id_no in the Table_X with PERSON table (superclass)
it says that id_no=3 is not exist in the PERSON table :chomp:
So, what I have to do?
Comment