Referential Integrity in SQL
Next: Functional Dependencies
Up: Referential Integrity
Previous: Database Modification
-
An addition to the original standard allows specification of primary and
candidate keys and foreign keys as part of the create table command:
- primary key clause includes a list of attributes forming the
primary key.
- unique key clause includes a list of attributes forming a
candidate key.
- foreign key clause includes a list of attributes forming the
foreign key, and the name of the relation referenced by the foreign key.
-
An example illustrates several features mentioned so far:



Page created and maintained by Osmar R. Zaï ane
Last Update:
Mon Oct 16 17:01:17 PDT 1995