A primary key is a unique value that identifies a row in a table, whereas a foreign key identifies a column or set of columns in one (referencing) table that refers to a column or set of column in another (referenced. table. A table can have only Primary Key but a table can have multiple foreign keys.