SQL FOREIGN KEY Constraint - W3Schools Online Web Tutorials
SQL FOREIGN KEY Constraint A FOREIGN KEY in one table points to a PRIMARY KEY in another table. Let's illustrate the foreign key with an example. ... Note that the "P_Id" column in the "Orders" table points to the "P_Id" column in the "Persons" table. The
www.w3schools.com |