Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Constraint
I guess I should be using a check constraint. Let me try. How about:
ALTER TABLE table_A
ADD CONSTRAINT ck_fk_id CHECK ( table_A_id in select table_B.id from table_B, table_C wheretable_B.id=table_C.id and table_C.level='0' )
Sound better? Received on Thu Mar 24 2005 - 14:01:13 CST
![]() |
![]() |