Re: Q: referential constraints

From: Ivan MIngot Latorre <mingot_at_vents.uji.es>
Date: 26 May 1994 06:54:06 GMT
Message-ID: <2s1h2e$hjp_at_pereiii.uji.es>


Off course you can do it:

    alter table B add Constraint fk_tableB FOREIGN KEY (part1,part2)

                                  REFERENCES tableA (part1,part2);

And if you want you can force a DELETE CASCADE:     

    alter table B add Constraint fk_tableB FOREIGN KEY (part1,part2)

				  REFERENCES tableA (part1,part2) 
				  ON DELETE CASCADE;


I hop this help you. Regards.

Ivan. Received on Thu May 26 1994 - 08:54:06 CEST

Original text of this message