Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> foreign key problem
Hi
I have one master table with primary key say a1 and I have a number of child table that have foreign keys to a1.
I first truncate all child tables.
Then I try to TRUNCATE master table. Here is what I get :
*
ERROR at line 1:
ORA-02266: unique/primary keys in table referenced by enabled foreign
keys
++++++++++++++++++++++++++++++++++++++++++++++++++++
But isnt referential integrity kicks in only there is actual data in child tables ??!!
Thanks Received on Mon Jul 27 1998 - 14:14:40 CDT
![]() |
![]() |