Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> foreign keys between 2 tables - newbie question
Hi,
I have two tables :
Employee
Department
I guess, I can't create these tables, because when I create the employee table the foreign key breaks down. So I first created the employee table without the FK and then the department table and then did an "alter table employee" to add FK.
But, when inserting values I have the same issue. ie: referential integrity test fails.
How do I overcome this?
Is there a general rule that 2 tables can't point to each other for Foreign Keys.
thanks,
Roshan
Received on Wed May 18 2005 - 14:01:48 CDT
![]() |
![]() |