A primary key is used to ensure data in the specific column is unique. A foreign key is a column or group of columns in a relational database table that provides a link between data in two tables. ... Only one primary key is allowed in a table. Whereas more than one foreign key are allowed in a table.Mar 28, 2020