Welcome to Questionaries, where you can ask questions and receive answers from other members of the community.

Let us know at info@questionaries.org

What is a primary key? What is a foreign key?

6 like 0 dislike
Hello
What is a primary key? What is a foreign key?
please reply me. i am waiting for your reply.
Thanx
asked 1 year ago by eagles11 (179,830 points)

1 Answer

1 like 0 dislike
 
Best answer
A primary key is the field(s) in a table that uniquely defines the row in the table; the values in the primary key are always unique. A foreign key is a constraint that establishes a relationship between two tables. This relationship typically involves the primary key field(s) from one table with an adjoining set of field(s) in another table (although it could be the same table). The adjoining field(s) is the foreign key.
answered 1 year ago by DBA-boss (120,990 points)

Related questions

9 like 0 dislike
1 answer
5 like 0 dislike
1 answer
3 like 0 dislike
1 answer
asked 1 year ago by daneim (127,080 points)
4 like 0 dislike
1 answer
asked 1 year ago by daneim (127,080 points)