The primary key is the columns used to uniquely identify each row of a table.It can not accept null,duplicate values. A table can have only one primary key.
Foreign keys are both a method of ensuring data integrity and a manifestation of the relationship between tables. It is a field in database table is primary key in another table. It can accept multiple null,duplicate values.