Snippet Name: Foreign Key Constraints
Description: The sole purpose of a foreign key constraint is to define a relationship between two tables.
This foreign key column establishes a direct relationship with a primary key or unique key column (referenced key) usually in another table.
The table containing the foreign key is referred to as the child, and the table containing the referenced key is the parent table.
The foreign key and referenced key can be in the same table (parent and child are the same table); otherwise, the parent and child tables must be in the same database.
Also see: » Check Constraint: Create
» Unique Constraint
» Primary Key Constraint
» Current_timestamp
» Deferring Constraint Checking
» Add Primary Key Constraint example
» Constraint Checks
» Add constraint example
Comment: (none)
Language: PL/SQL
Highlight Mode: PLSQL
Last Modified: March 07th, 2009
|
|