Computer Science, asked by rrdn619425, 1 year ago

explain primary key and foreign key..

Answers

Answered by jayeshbaheti
51
primary - a primary key is a column or group of column that uniquely identify a row .

foreign - a foreign key is a column or set of columns in one table

rrdn619425: thanks
jayeshbaheti: wlc
Answered by labeebahmed81
12

Answer:

A primary key is a special key which uniquely identifies each record in a table. It is very important in the relational database to have a unique identifier in each row of a table and primary key is just the thing you need to uniquely identify a tuple within a table.

A foreign key refers to a field or a collection of fields in a database record that uniquely identifies a key field of another database record in some other table. In simple terms, it establishes a link between records in two different tables in a database.

please give a like and five star rating if possible:)

Similar questions