TOP CATEGORIES

×

What is the difference between a primary key and a foreign key?

M

Mukul Ojha

Primary Key -

A table can have only one primary key

Primary Key column can't store null values

Primary key Uniquely identifies each row in a table

Foreign Key -

A Foreign Key is a key used to link two tables together.

Foreign Key is a column that references a column (most often the primary key) of another table.

0 votes

Your Answer

Email: advertise@gdatamart.com

Donate: To Support US

© 2024 GDATAMART.COM (All Rights Reserved)