Foreign Key « Key « SQL / MySQL






1.Define foreign key
2.RESTRICT update and delete
3.Add Foreign Key Rules
4.Use a FOREIGN KEY constraint to define the foreign key
5.Add the foreign key by using the following
6.Reference foreign key
7.Two foreign keys
8.On delete set null
9.Cascade delete